Class: MachinistCouchrestModel::Blueprint

Inherits:
Machinist::Blueprint
  • Object
show all
Defined in:
lib/machinist_couchrest_model/blueprint.rb

Instance Method Summary collapse

Instance Method Details

#lathe_classObject



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_transactionObject



17
18
# File 'lib/machinist_couchrest_model/blueprint.rb', line 17

def outside_transaction
end