Module: ParamProtected::ControllerModifications::InstanceMethods
- Defined in:
- lib/param_protected/controller_modifications.rb
Instance Method Summary collapse
Instance Method Details
#_protector ⇒ Object
33 34 35 |
# File 'lib/param_protected/controller_modifications.rb', line 33 def _protector self.class._protector end |
#params_with_protection ⇒ Object
37 38 39 40 |
# File 'lib/param_protected/controller_modifications.rb', line 37 def params_with_protection return params_without_protection if action_name.blank? @params_with_protection ||= _protector.protect(self, params_without_protection, action_name) end |