Sha256: 7ff6b7c80dcb5fabee26129511649dd5aca9ef4b5cce8caea041975fa3732b2e
Contents?: true
Size: 431 Bytes
Versions: 3
Compression:
Stored size: 431 Bytes
Contents
# frozen_string_literal: true require_relative './path_for_helper' require_relative './description_for_helper' module Sort module LinkForHelper include Sort::PathForHelper include Sort::DescriptionForHelper 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
3 entries across 3 versions & 1 rubygems