app/helpers/pagelets_helper.rb in pagelet_rails-0.1.6 vs app/helpers/pagelets_helper.rb in pagelet_rails-0.1.7

- old
+ new

@@ -68,16 +68,23 @@ add_pagelet_stream html_id, &Proc.new { pagelet path, p_options.merge(remote: false, skip_container: true) } end - p_options.deep_merge! parent_params: params.to_h + parent_params = + if params.respond_to?(:to_unsafe_h) + params.to_unsafe_h + else + params.to_h + end + p_options.deep_merge! parent_params: parent_params + c = controller_class.new c.pagelet_options p_options c.pagelet_options original_options: p_options - env = request.env.select do |key, value| + env = request.env.select do |key, _value| case key.to_s when /^action_dispatch\.request/i, /^action_controller/i, /^rack\.request/i, /^request/i,