Method: ActiveModel::AttributeFilters::ClassMethods#attribute_sets
- Defined in:
- lib/attribute-filters/dsl_sets.rb
#attribute_sets ⇒ MetaSet{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.
419 420 421 |
# File 'lib/attribute-filters/dsl_sets.rb', line 419 def attribute_sets __attribute_sets.deep_dup end |