Class: Kaminari::Helpers::Tag
- Inherits:
-
Object
- Object
- Kaminari::Helpers::Tag
- Defined in:
- lib/kaminari/helpers/tag.rb
Overview
Monkey patch for Kaminari::Helpers::Tag to support :custom_path_method :reek:InstanceVariableAssumption { enabled: false }
Instance Method Summary collapse
Instance Method Details
#page_url_for(page) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/kaminari/helpers/tag.rb', line 8 def page_url_for(page) if @options[:custom_path_method].present? Tramway::Engine.routes.url_helpers.public_send( @options[:custom_path_method], *@options[:custom_path_arguments], @params.except(:controller, :action).merge(page:) ) else params = params_for(page) @template.url_for params.merge(only_path: true) end end |