Method: ActiveModel::AttributeFilters::ClassMethods#attribute_sets

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

#attribute_setsMetaSet{Symbol => AttributeSet<String>} Also known as: attributes_sets, properties_sets

Note:

Use key method explicitly to check if the given set exists. The hash returned by this method will always return ActiveModel::AttributeSet object. If there is no such set defined then the returned, matching set will be empty. All set objects are duplicates of the defined sets.

Gets all the defined attribute sets.

Returns:

  • (MetaSet{Symbol => AttributeSet<String>})

    the collection of attribute sets indexed by their names



419
420
421
# File 'lib/attribute-filters/dsl_sets.rb', line 419

def attribute_sets
  __attribute_sets.deep_dup
end