Sha256: 8379d5a08be56b57443bf7c63e58088948923fe54c1d4fda746263631bd17f04

Contents?: true

Size: 335 Bytes

Versions: 34

Compression:

Stored size: 335 Bytes

Contents

module Pugin
    module ViewHelpers
        def navigation_link(route_symbol:, route_args:, letter:)
            url = send(route_symbol, *route_args, letter) unless route_args.empty?
            url = send(route_symbol, letter) unless url

            return link_to(letter, url, data: { 'atoz-see': 'true' })
        end
    end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
pugin-1.6.12 lib/pugin/view_helpers.rb
pugin-1.6.11 lib/pugin/view_helpers.rb
pugin-1.6.10 lib/pugin/view_helpers.rb
pugin-1.6.9 lib/pugin/view_helpers.rb
pugin-1.6.8 lib/pugin/view_helpers.rb
pugin-1.6.7 lib/pugin/view_helpers.rb
pugin-1.6.6 lib/pugin/view_helpers.rb
pugin-1.6.5 lib/pugin/view_helpers.rb
pugin-1.6.4 lib/pugin/view_helpers.rb
pugin-1.6.3 lib/pugin/view_helpers.rb
pugin-1.6.1 lib/pugin/view_helpers.rb
pugin-1.6.0 lib/pugin/view_helpers.rb
pugin-1.5.1 lib/pugin/view_helpers.rb
pugin-1.5.0 lib/pugin/view_helpers.rb
pugin-1.4.1 lib/pugin/view_helpers.rb
pugin-1.4.0 lib/pugin/view_helpers.rb
pugin-1.3.1 lib/pugin/view_helpers.rb
pugin-1.3.0 lib/pugin/view_helpers.rb
pugin-1.2.5 lib/pugin/view_helpers.rb
pugin-1.2.4 lib/pugin/view_helpers.rb