Sha256: 17b62ee7a887be6c90110a043f0df28b0dcad4a1dbe3072e6bbbe1f5bbd576c1

Contents?: true

Size: 260 Bytes

Versions: 8

Compression:

Stored size: 260 Bytes

Contents

module SimpleAdmin
  class EntityFieldTypeActionsController < BaseController
    def create
      field_type = params[:entity_field_type_name].constantize

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
simpleadmin-1.2.7 app/controllers/simple_admin/entity_field_type_actions_controller.rb
simpleadmin-1.2.6 app/controllers/simple_admin/entity_field_type_actions_controller.rb
simpleadmin-1.2.5 app/controllers/simple_admin/entity_field_type_actions_controller.rb
simpleadmin-1.2.4 app/controllers/simple_admin/entity_field_type_actions_controller.rb
simpleadmin-1.2.3 app/controllers/simple_admin/entity_field_type_actions_controller.rb
simpleadmin-1.2.2 app/controllers/simple_admin/entity_field_type_actions_controller.rb
simpleadmin-1.2.1 app/controllers/simple_admin/entity_field_type_actions_controller.rb
simpleadmin-1.2.0 app/controllers/simple_admin/entity_field_type_actions_controller.rb