module ActionDispatch::Http::URL
Public Class Methods
path_for(options)
click to toggle source
# File lib/incline/extensions/param_propagation.rb, line 20 def self.path_for(options) if (request = Incline::current_request) propagated_params.each do |k| if request.params.key? k options[:params] ||= {} options[:params][k] = request.params[k] end end end incline_original_path_for(options) end
Also aliased as: incline_original_path_for
propagated_params()
click to toggle source
Enables automatic parameter propagation.
This will only propagate within the current thread. Child threads will not propagate. This will not affect other requests in the current session.
ActionDispatch::Http::URL.propagated_params << :some_param
# File lib/incline/extensions/param_propagation.rb, line 12 def self.propagated_params @propagated_params ||= [] end