Module: Sort::DescriptionForHelper
- Includes:
- NextDirectionForHelper
- Included in:
- LinkForHelper
- Defined in:
- lib/action_set/helpers/sort/description_for_helper.rb
Instance Method Summary collapse
Methods included from NextDirectionForHelper
Methods included from FormattingHelper
#ascending_str, #descending_str
Methods included from CurrentDirectionForHelper
Methods included from Params::CurrentHelper
Instance Method Details
#sort_description_for(attribute) ⇒ Object
9 10 11 |
# File 'lib/action_set/helpers/sort/description_for_helper.rb', line 9 def sort_description_for(attribute) "sort by '#{attribute}' in #{next_sort_direction_for(attribute, format: :long)} order" end |