Module: ActiveModel::AttributeFilters::Common::Order::ClassMethods

Defined in:
lib/attribute-filters/common_filters/order.rb

Overview

This submodule contains class methods used to easily define filter.

Instance Method Summary collapse

Instance Method Details

#reverse_attributes(*args) ⇒ Object Also known as: reverse_attribute, reverses_attribute, reverses_attributes

Registers attributes that should be filled with some values.



44
45
46
47
# File 'lib/attribute-filters/common_filters/order.rb', line 44

def reverse_attributes(*args)
  setup_attributes_that :should_be_reversed, args,
    :reverse_enumerable => [:enum, :enums, :whole_enums, :reverse_enums, :reverse_enumerable]
end