Method: LHS::Proxy::Create#create

Defined in:
lib/lhs/concerns/proxy/create.rb

#create(data = {}, options = nil) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/lhs/concerns/proxy/create.rb', line 10

def create(data = {}, options = nil)
  record_creation!(options) do
    record_from_link.create(
      data,
      options_for_creation(options)
    )
  end
end