Sha256: c997ae989e62682c24045707b4713b8c180efbb0947c45b73c93377eec77a564

Contents?: true

Size: 314 Bytes

Versions: 14

Compression:

Stored size: 314 Bytes

Contents

# frozen_string_literal: true

require_relative './next_direction_for_helper'

module Sort
  module DescriptionForHelper
    include Sort::NextDirectionForHelper

    def sort_description_for(attribute)
      "sort by '#{attribute}' in #{next_sort_direction_for(attribute, format: :long)} order"
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
actionset-0.11.0 lib/action_set/helpers/sort/description_for_helper.rb
actionset-0.10.0 lib/action_set/helpers/sort/description_for_helper.rb
actionset-0.9.2 lib/action_set/helpers/sort/description_for_helper.rb
actionset-0.9.1 lib/action_set/helpers/sort/description_for_helper.rb
actionset-0.8.2 lib/action_set/helpers/sort/description_for_helper.rb
actionset-0.8.1 lib/action_set/helpers/sort/description_for_helper.rb
actionset-0.8.0 lib/action_set/helpers/sort/description_for_helper.rb
actionset-0.7.0 lib/action_set/helpers/sort/description_for_helper.rb
actionset-0.6.0 lib/action_set/helpers/sort/description_for_helper.rb
actionset-0.5.4 lib/action_set/helpers/sort/description_for_helper.rb
actionset-0.5.3 lib/action_set/helpers/sort/description_for_helper.rb
actionset-0.5.2 lib/action_set/helpers/sort/description_for_helper.rb
actionset-0.5.1 lib/action_set/helpers/sort/description_for_helper.rb
actionset-0.5.0 lib/action_set/helpers/sort/description_for_helper.rb