Module: LHS::Proxy::Create
- Extended by:
- ActiveSupport::Concern
- Included in:
- LHS::Proxy
- Defined in:
- lib/lhs/concerns/proxy/create.rb
Instance Method Summary collapse
Instance Method Details
#create(data = {}, options = nil) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/lhs/concerns/proxy/create.rb', line 8 def create(data = {}, = nil) record_creation!() do record_from_link.create( data, () ) end end |
#create!(data = {}, options = nil) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/lhs/concerns/proxy/create.rb', line 17 def create!(data = {}, = nil) record_creation!() do record_from_link.create!( data, () ) end end |