Module: DarDaDa::ActionControllerExtension

Defined in:
lib/dar_da_da/action_controller_extension.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
# File 'lib/dar_da_da/action_controller_extension.rb', line 3

def self.included(base)
  base.extend(ClassMethods)
  unless defined?(ActionController::ForbiddenError)
    base.class_eval "class ::ActionController::ForbiddenError < ::ActionController::ActionControllerError;end"
  end
end