Sha256: 9c3d0e80ad02703011675219cc075c4a484a4a1b016afd6a523a3b0b7d302480

Contents?: true

Size: 272 Bytes

Versions: 1

Compression:

Stored size: 272 Bytes

Contents

# frozen_string_literal: true

module Sort
  module LinkForHelper
    def sort_link_for(attribute, name = nil)
      link_to(name || attribute.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.1 lib/action_set/helpers/sort/link_for_helper.rb