Module: ApplicationUserConcern

Extended by:
ActiveSupport::Concern
Includes:
ApplicationUserMasqueradeConcern
Included in:
ApplicationController
Defined in:
app/controllers/concerns/application_user_concern.rb

Instance Method Summary collapse

Instance Method Details

#handle_access_denied(exception) ⇒ Object (protected)


17
18
19
20
# File 'app/controllers/concerns/application_user_concern.rb', line 17

def handle_access_denied(exception)
  @exception = exception
  render 'pages/403', status: :forbidden
end

#publicly_accessible?Boolean (protected)

Returns:

  • (Boolean)

13
14
15
# File 'app/controllers/concerns/application_user_concern.rb', line 13

def publicly_accessible?
  is_a?(HighVoltage::PagesController)
end