Class: SimpleAdmin::EntitiesController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
# File 'app/controllers/simple_admin/entities_controller.rb', line 6

def index
  render json: @entity_service.index_action
end

#showObject



10
11
12
13
14
# File 'app/controllers/simple_admin/entities_controller.rb', line 10

def show
  resource_klass = params[:id].constantize

  render json: @entity_service.show_action(resource_klass)
end