Sha256: bd395ab4bcdcdf58f988a69d424f900ae104696031006f26dcbd4023622a2eb7
Contents?: true
Size: 510 Bytes
Versions: 2
Compression:
Stored size: 510 Bytes
Contents
require_dependency 'lina/base_controller' module Lina class SchemaController < BaseController 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lina-0.0.4 | app/controllers/lina/schema_controller.rb |
lina-0.0.3 | app/controllers/lina/schema_controller.rb |