Method: ActiveModel::AttributeFilters#all_inaccessible_attributes

Defined in:
lib/attribute-filters/dsl_sets.rb

#all_inaccessible_attributes(simple = false, no_presence_check = true) ⇒ AttributeSet Also known as: all_non_accessible_attributes, inaccessible_attributes_set

Returns a set containing all attributes that are not accessible attributes.

Parameters:

  • simple (Boolean) (defaults to: false)

    optional parameter that disables wrapping a resulting set in a proxy (defaults to false)

  • no_presence_check (Boolean) (defaults to: true)

    optional parameter that disables checking for presence of setters and getters for each virtual and semi-real attribute (defaults to true)

Returns:



157
158
159
# File 'lib/attribute-filters/dsl_sets.rb', line 157

def all_inaccessible_attributes(simple = false, no_presence_check = true)
  all_attributes(simple, no_presence_check) - all_accessible_attributes(simple)
end