Method: Engine2::ActionCreateSupport#invoke
- Defined in:
- lib/engine2/action.rb
#invoke(handler) ⇒ Object
1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 |
# File 'lib/engine2/action.rb', line 1075 def invoke handler record = {} # if assoc = assets[:assoc] # case assoc[:type] # when :one_to_many # parent = handler.params[:parent_id] # assoc[:keys].zip(split_keys(parent)).each{|key, val| record[key] = val} if parent # end # end static.record(handler, record) {record: record, new: true} end |