Class: SimpleAdmin::EntityFieldTypeActionsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/simple_admin/entity_field_type_actions_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



3
4
5
6
7
# File 'app/controllers/simple_admin/entity_field_type_actions_controller.rb', line 3

def create
  field_type = params[:entity_field_type_name].constantize

  render json: field_type.new.run(params[:field_name], params[:model_klass_name])
end