module Merb::ParamsFilter::ControllerMixin

Public Class Methods

included(base) click to toggle source
# 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