Module: BazaModels::Model::Manipulation::ClassMethods
- Defined in:
- lib/baza_models/model/manipulation.rb
Instance Method Summary collapse
Instance Method Details
#create(data = {}) ⇒ Object
120 121 122 123 124 |
# File 'lib/baza_models/model/manipulation.rb', line 120 def create(data = {}) model = new(data) model.save model end |
#create!(data = {}) ⇒ Object
126 127 128 129 130 |
# File 'lib/baza_models/model/manipulation.rb', line 126 def create!(data = {}) model = new(data) model.save! model end |