ApplicationController

1
2
3
4
class ApplicationController < ActionController::Base

  # Include the library needed for authentication functionality.
  include AuthenticationSystem

AuthenticationSystem

1
2
3
4
5
6
7
8
module AuthenticationSystem

  class NotAuthorized < RuntimeError; end

  rescue_from AuthenticationSystem::NotAuthorized, :with => manage_permission_denied

  def manage_permission_denied(exception)
  ...

Error

1
2
3
4
 NameError

undefined local variable or method `manage_permission_denied' for AuthenticationSystem:Module