Method: ActiveModel::AttributeFilters#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.
Gets all the defined attribute set names hashed by attribute names.
232 233 234 |
# File 'lib/attribute-filters/dsl_sets.rb', line 232 def attributes_to_sets self.class.attributes_to_sets end |