Module: Mince::Model::Persistence::ClassMethods
- Defined in:
- lib/mince/model/persistence.rb
Instance Method Summary collapse
-
#create(data) ⇒ Object
Creates a record with the given field values.
Instance Method Details
#create(data) ⇒ Object
Creates a record with the given field values
19 20 21 |
# File 'lib/mince/model/persistence.rb', line 19 def create(data) new(data).tap(&:save) end |