Class: StompBase::ModelsController
Instance Method Summary
collapse
Methods included from I18nHelper
#available_locales, #current_locale, #locale_name, #t
Instance Method Details
#index ⇒ Object
10
11
12
|
# File 'app/controllers/stomp_base/models_controller.rb', line 10
def index
@models = application_models
end
|
#show ⇒ Object
14
15
16
17
18
19
20
21
|
# File 'app/controllers/stomp_base/models_controller.rb', line 14
def show
model_name = params[:id]
model_class = get_model_class(model_name)
return redirect_with_error(model_name) unless model_class
@model_detail_component = build_model_detail_component(model_name, model_class)
end
|