Class: ActiveModel::MassAssignmentSecurity::PermissionSet

Inherits:
Set
  • Object
show all
Defined in:
activemodel/lib/active_model/mass_assignment_security/permission_set.rb

Direct Known Subclasses

BlackList, WhiteList

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loggerObject

Returns the value of attribute logger



7
8
9
# File 'activemodel/lib/active_model/mass_assignment_security/permission_set.rb', line 7

def logger
  @logger
end

Instance Method Details

#+(values) ⇒ Object



9
10
11
# File 'activemodel/lib/active_model/mass_assignment_security/permission_set.rb', line 9

def +(values)
  super(values.map(&:to_s))
end

#include?(key) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'activemodel/lib/active_model/mass_assignment_security/permission_set.rb', line 13

def include?(key)
  super(remove_multiparameter_id(key))
end