Class: Lina::SchemaController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- Lina::SchemaController
- Defined in:
- app/controllers/lina/schema_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/lina/schema_controller.rb', line 5 def index if ! controller = user_api_controllers.find { |c| c == params[:schema_controller] } raise "#{t('lina.controller')} #{params[:schema_controller]} #{t('lina.notfound')}" end action = params[:schema_action].to_sym if ! @schema = str2controller(controller)._actions[action] raise "#{t('lina.action')} #{action} #{t('lina.notfound')}" end end |