Class: ActiveModel::MassAssignmentSecurity::PermissionSet

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

Direct Known Subclasses

BlackList, WhiteList

Instance Method Summary collapse

Instance Method Details

#+(values) ⇒ Object



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

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

#deny?(key) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/active_model/mass_assignment_security/permission_set.rb', line 15

def deny?(key)
  raise NotImplementedError, "#deny?(key) suppose to be overwritten"
end

#include?(key) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/active_model/mass_assignment_security/permission_set.rb', line 11

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