Module: LHS::Record::Create::ClassMethods
- Defined in:
- lib/lhs/concerns/record/create.rb
Instance Method Summary collapse
Instance Method Details
#create(data = {}, options = nil) ⇒ Object
11 12 13 14 15 |
# File 'lib/lhs/concerns/record/create.rb', line 11 def create(data = {}, = nil) record = new(data) record.save() record end |
#create!(data = {}, options = nil) ⇒ Object
17 18 19 20 21 |
# File 'lib/lhs/concerns/record/create.rb', line 17 def create!(data = {}, = nil) record = new(data) record.save!() record end |