Sha256: 1c346b5bf2b318fc85e2d7d390d43316fb866259d6a4b9754314cd7e283e6c21

Contents?: true

Size: 307 Bytes

Versions: 2

Compression:

Stored size: 307 Bytes

Contents

module SimpleAdmin
  class EntityFieldTypeActionsController < BaseController
    def create
      render json: entity_field_type.new.run(params[:field_name], params[:model_klass_name])
    end

    private

      def entity_field_type
        params[:entity_field_type_name].constantize
      end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simpleadmin-1.4.0 app/controllers/simple_admin/entity_field_type_actions_controller.rb
simpleadmin-1.3.0 app/controllers/simple_admin/entity_field_type_actions_controller.rb