Module: Blueprints::Extensions::SoftSaveable
- Includes:
- Blueprintable, Extendable
- Defined in:
- lib/blueprints/extensions.rb
Overview
Include this instead of Blueprints::Extensions::Saveable if you want non bang save method (eg.using datamapper)
Instance Method Summary collapse
-
#blueprint(attributes) ⇒ Object
Overrides object.blueprint to also call save.
Methods included from Extendable
Instance Method Details
#blueprint(attributes) ⇒ Object
Overrides object.blueprint to also call save
93 94 95 96 |
# File 'lib/blueprints/extensions.rb', line 93 def blueprint(attributes) super(attributes) save end |