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

#next_sort_direction_for

Methods included from FormattingHelper

#ascending_str, #descending_str

Methods included from CurrentDirectionForHelper

#current_sort_direction_for

Methods included from Params::CurrentHelper

#current_params

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