Method: ActiveModel::AttributeFilters#all_attributes

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

#all_attributes(simple = false, no_presence_check = true) ⇒ AttributeSet Also known as: all_attributes_set

Returns a set containing all known attributes without wrapping the result in a proxy.

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:



91
92
93
94
# File 'lib/attribute-filters/dsl_sets.rb', line 91

def all_attributes(simple = false, no_presence_check = true)
  r = __all_attributes(no_presence_check).deep_dup
  simple ? r : ActiveModel::AttributeSet::Query.new(r, self)
end