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