Sha256: 47d7bdd6287de79641b15fdae16dd1569c941121afac2ccbadee873dfa3eb502

Contents?: true

Size: 363 Bytes

Versions: 25

Compression:

Stored size: 363 Bytes

Contents

module Kaminari
  module Helpers
    class Tag

      def page_url_for(page)
        arguments = @params.merge(@param_name => (page <= 1 ? nil : page), :only_path => true).symbolize_keys
        begin
          Fuel::Engine.routes.url_helpers.url_for arguments
        rescue
          @template.main_app.url_for arguments
        end
      end

    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
fuel-0.4.10 lib/kaminari/helpers/tag.rb
fuel-0.4.9 lib/kaminari/helpers/tag.rb
fuel-0.4.8 lib/kaminari/helpers/tag.rb
fuel-0.4.7 lib/kaminari/helpers/tag.rb
fuel-0.4.6 lib/kaminari/helpers/tag.rb
fuel-0.4.5 lib/kaminari/helpers/tag.rb
fuel-0.4.4 lib/kaminari/helpers/tag.rb
fuel-0.4.3 lib/kaminari/helpers/tag.rb
fuel-0.4.2 lib/kaminari/helpers/tag.rb
fuel-0.4.1 lib/kaminari/helpers/tag.rb
fuel-0.3.34 lib/kaminari/helpers/tag.rb
fuel-0.3.33 lib/kaminari/helpers/tag.rb
fuel-0.3.32 lib/kaminari/helpers/tag.rb
fuel-0.3.31 lib/kaminari/helpers/tag.rb
fuel-0.3.30 lib/kaminari/helpers/tag.rb
fuel-0.3.29 lib/kaminari/helpers/tag.rb
fuel-0.3.28 lib/kaminari/helpers/tag.rb
fuel-0.3.27 lib/kaminari/helpers/tag.rb
fuel-0.3.26 lib/kaminari/helpers/tag.rb
fuel-0.3.25 lib/kaminari/helpers/tag.rb