Class: Machinist::ActiveRecord::Blueprint
- Defined in:
- lib/machinist/active_record/blueprint.rb
Instance Attribute Summary
Attributes inherited from Blueprint
Instance Method Summary collapse
-
#lathe_class ⇒ Object
:nodoc:.
-
#make!(attributes = {}) ⇒ Object
Make and save an object.
Methods inherited from Blueprint
#each_ancestor, #initialize, #make, #parent_blueprint
Constructor Details
This class inherits a constructor from Machinist::Blueprint
Instance Method Details
#lathe_class ⇒ Object
:nodoc:
11 12 13 |
# File 'lib/machinist/active_record/blueprint.rb', line 11 def lathe_class #:nodoc: Machinist::ActiveRecord::Lathe end |
#make!(attributes = {}) ⇒ Object
Make and save an object.
5 6 7 8 9 |
# File 'lib/machinist/active_record/blueprint.rb', line 5 def make!(attributes = {}) object = make(attributes) object.save! object.reload end |