Module: Morpheus::Mixins::Persistence::ClassMethods

Defined in:
lib/morpheus/mixins/persistence.rb

Instance Method Summary collapse

Instance Method Details

#create(new_attributes = {}) ⇒ Object Also known as: create!



38
39
40
# File 'lib/morpheus/mixins/persistence.rb', line 38

def create(new_attributes = {})
  new(new_attributes).tap { |new_instance| new_instance.save }
end