Class: ActiveModel::MassAssignmentSecurity::PermissionSet

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

Overview

:nodoc:

Direct Known Subclasses

BlackList, WhiteList

Instance Method Summary collapse

Instance Method Details

#+(values) ⇒ Object


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

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

#deny?(key) ⇒ Boolean

Returns:

Raises:

  • (NotImplementedError)

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

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

#include?(key) ⇒ Boolean

Returns:


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

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