Method: ActiveModel::AttributeFilters::ClassMethods#attributes_to_sets
- Defined in:
- lib/attribute-filters/dsl_sets.rb
#attributes_to_sets ⇒ MetaSet{String => AttributeSet<Symbol>} Also known as: attribute_sets_map
Note:
Use key
method explicitly to check if the given attribute is assigned to any set. The hash returned by this method will always return ActiveModel::AttributeSet object. If the attribute is not assigned to any set then the returned, matching set will be empty. This method returns a duplicate of each reverse mapped set.
Gets all the defined attribute set names hashed by attribute names.
433 434 435 |
# File 'lib/attribute-filters/dsl_sets.rb', line 433 def attributes_to_sets __attributes_to_sets_map.deep_dup end |