Module: Engine2::ActionUpdateSupport
- Included in:
- ArrayUpdateAction, UpdateAction
- Defined in:
- lib/engine2/action.rb
Instance Method Summary collapse
Instance Method Details
#allocate_record(handler, json_rec) ⇒ Object
960 961 962 963 964 965 |
# File 'lib/engine2/action.rb', line 960 def allocate_record handler, json_rec record = super(handler, json_rec) model = assets[:model] handler.permit record.has_primary_key? unless model.natural_key or self.class.validate_only record end |