Module: Blueprints::Extensions::Saveable

Includes:
Blueprintable, Extendable
Included in:
DynamicSaveable
Defined in:
lib/blueprints/extensions.rb

Overview

Include this instead of Blueprints::Extensions::Blueprintable if record needs to persist, includes Blueprints::Extensions::Blueprintable

Instance Method Summary collapse

Methods included from Extendable

included

Instance Method Details

#blueprint(attributes) ⇒ Object

Overrides object.blueprint to also call save!



76
77
78
79
# File 'lib/blueprints/extensions.rb', line 76

def blueprint(attributes)
  super(attributes)
  save!
end