Module: ParamProtected::ControllerModifications

Extended by:
ActiveSupport::Concern
Defined in:
lib/param_protected/controller_modifications.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#_protectorObject



32
33
34
# File 'lib/param_protected/controller_modifications.rb', line 32

def _protector
  self.class._protector
end

#params_with_protectionObject



36
37
38
39
# File 'lib/param_protected/controller_modifications.rb', line 36

def params_with_protection
  return params_without_protection if action_name.blank?
  @params_with_protection ||= _protector.protect(self, params_without_protection, action_name)
end