Class: MachinistCouchrestModel::Blueprint
- Inherits:
-
Machinist::Blueprint
- Object
- Machinist::Blueprint
- MachinistCouchrestModel::Blueprint
- Defined in:
- lib/machinist_couchrest_model/blueprint.rb
Instance Method Summary collapse
- #lathe_class ⇒ Object
-
#make!(attributes = {}) ⇒ Object
Make and save an object.
- #outside_transaction ⇒ Object
Instance Method Details
#lathe_class ⇒ Object
13 14 15 |
# File 'lib/machinist_couchrest_model/blueprint.rb', line 13 def lathe_class MachinistCouchrestModel::Lathe end |
#make!(attributes = {}) ⇒ Object
Make and save an object.
5 6 7 8 9 10 11 |
# File 'lib/machinist_couchrest_model/blueprint.rb', line 5 def make!(attributes = {}) object = make(attributes) object.save! object.reload object.after_initialize if object.respond_to?(:after_initialize) object end |
#outside_transaction ⇒ Object
17 18 |
# File 'lib/machinist_couchrest_model/blueprint.rb', line 17 def outside_transaction end |