Sha256: 236f0291178ac9ab24913b41f85065a4dbd69815f8ee6991501fa7026947f5c5

Contents?: true

Size: 277 Bytes

Versions: 1

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

module Sort
  module LinkForHelper
    def sort_link_for(attribute, name = nil)
      link_to(name || attribute.to_s.titleize,
              sort_path_for(attribute),
              'aria-label': sort_description_for(attribute))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
actionset-0.4.2 lib/action_set/helpers/sort/link_for_helper.rb