class Frigate::Operation::Action::Create
Is here to perform create action of operation
Public Instance Methods
action()
click to toggle source
An create action is defined in here
# File lib/frigate/operation/action/create.rb, line 7 def action @model = model_klass.new @model_form = create_form(model) if model_form.validate(params) if operation_block operation_block(model, params) else model_form.sync_with_model(save: true) end end end