Class: BHM::Admin::AttrAccessibleScoping::Sanitizer

Inherits:
ActiveModel::MassAssignmentSecurity::WhiteList
  • Object
show all
Defined in:
lib/bhm/admin/attr_accessible_scoping.rb

Instance Method Summary collapse

Instance Method Details

#deny?(attribute) ⇒ Boolean

Returns:

  • (Boolean)


56
57
58
59
# File 'lib/bhm/admin/attr_accessible_scoping.rb', line 56

def deny?(attribute)
  return false if AttrAccessibleScoping.disabled? || self.include?("all")
  super
end