Class: Avo::BaseApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Avo::BaseApplicationController
- Includes:
- ApplicationHelper, CommonController, Concerns::Breadcrumbs, Concerns::FindAssociationField, InitializesAvo, UrlHelpers, Pundit, Pundit::Authorization
- Defined in:
- app/controllers/avo/base_application_controller.rb
Direct Known Subclasses
Constant Summary
Constants included from Concerns::FindAssociationField
Concerns::FindAssociationField::ASSOCIATIONS
Instance Method Summary collapse
- #exception_logger(exception) ⇒ Object
-
#turbo_frame_request? ⇒ Boolean
This is coming from Turbo::Frames::FrameRequest module.
Methods included from Concerns::FindAssociationField
Methods included from Concerns::Breadcrumbs
#add_breadcrumb, #avo_breadcrumbs
Methods included from UrlHelpers
#edit_resource_path, #new_resource_path, #preview_resource_path, #related_resources_path, #resource_attach_path, #resource_detach_path, #resource_path, #resource_view_path, #resources_path
Methods included from ApplicationHelper
#a_button, #a_link, #body_classes, #button_classes, #chart_color, #container_classes, #d, #decode_filter_params, #e, #editor_file_path, #editor_url, #empty_state, #encode_filter_params, #frame_id, #get_model_class, #input_classes, #mount_path, #number_to_social, #possibly_rails_authentication?, #render_license_warning, #root_path_without_url, #rtl?, #text_direction, #ui, #wrap_in_modal
Methods included from ResourcesHelper
#field_wrapper, #filter_wrapper, #index_field_wrapper, #item_selector_data_attributes, #record_path, #record_title, #resource_for_record, #resource_grid, #resource_show_path, #resource_table
Methods included from CommonController
#default_url_options, #extra_default_url_options
Methods included from InitializesAvo
#_current_user, #context, #init_app
Methods included from Concerns::SafeCall
Instance Method Details
#exception_logger(exception) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'app/controllers/avo/base_application_controller.rb', line 35 def exception_logger(exception) respond_to do |format| format.html { raise exception } format.json { render json: { errors: (exception.respond_to?(:record) && exception.record.present?) ? exception.record.errors : [], message: exception., traces: exception.backtrace }, status: ActionDispatch::ExceptionWrapper.status_code_for_exception(exception.class.name) } end end |
#turbo_frame_request? ⇒ Boolean
This is coming from Turbo::Frames::FrameRequest module. Exposing it as public method
50 51 52 |
# File 'app/controllers/avo/base_application_controller.rb', line 50 def turbo_frame_request? super end |