Module: Merb::ParamsFilter::ControllerMixin
- Defined in:
- lib/merb-param-protection.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/merb-param-protection.rb', line 6 def self.included(base) base.send(:extend, ClassMethods) base.send(:include, InstanceMethods) base.send(:class_inheritable_accessor, :accessible_params_args) base.send(:class_inheritable_accessor, :protected_params_args) base.send(:class_inheritable_accessor, :log_params_args) # Don't expose these as public methods - otherwise they'll become controller actions base.send(:protected, :accessible_params_args, :protected_params_args, :log_params_args) base.send(:protected, :accessible_params_args=, :protected_params_args=, :log_params_args=) base.send(:before, :initialize_params_filter) end |