Module: ParamProtected::ControllerModifications

Defined in:
lib/param_protected/controller_modifications.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.extended(action_controller) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/param_protected/controller_modifications.rb', line 4

def self.extended(action_controller)
  action_controller.class_eval do
    extend  ClassMethods
    singleton_class.alias_method_chain :inherited, :protector
    include InstanceMethods
    alias_method_chain :params, :protection
  end
end