Class: ModelExplorer::ExportsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ModelExplorer::ExportsController
- Defined in:
- app/controllers/model_explorer/exports_controller.rb
Instance Method Summary collapse
-
#show ⇒ Object
Warning: all parameters are permitted.
Instance Method Details
#show ⇒ Object
Warning: all parameters are permitted. Associations must not be called directly on the record.
7 8 9 10 11 12 13 |
# File 'app/controllers/model_explorer/exports_controller.rb', line 7 def show ensure_valid_model_name(params[:model]) render_export rescue => error render_bad_request(error) end |