Class: PgSqlTriggers::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
ErrorHandling, KillSwitchProtection, PermissionChecking, PermissionsHelper
Defined in:
app/controllers/pg_sql_triggers/application_controller.rb

Overview

Base controller for all pg_sql_triggers controllers. Includes common concerns for kill switch protection, permission checking, and error handling.

Method Summary

Methods included from PermissionsHelper

#can?, #can_apply_triggers?, #can_drop_triggers?, #can_enable_disable_triggers?, #can_execute_sql_operations?, #can_generate_triggers?, #can_view_triggers?

Methods included from ErrorHandling

#format_error_for_flash, #handle_kill_switch_error, #handle_standard_error, #rescue_pg_sql_triggers_error

Methods included from PermissionChecking

#can_apply_triggers?, #can_drop_triggers?, #can_enable_disable_triggers?, #can_execute_sql_operations?, #can_generate_triggers?, #can_view_triggers?, #check_admin_permission, #check_operator_permission, #check_viewer_permission, #current_actor, #current_user_id, #current_user_type

Methods included from KillSwitchProtection

#check_kill_switch, #current_environment, #expected_confirmation_text, #kill_switch_active?, #require_kill_switch_override