Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit 3a16c92

Browse files
committed
Rails 5 ActionController::Parameter fix
1 parent 01341f5 commit 3a16c92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/periscope.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def scope_accessible(*scopes)
55
end
66

77
def periscope(params = {})
8-
params.inject(periscope_default_scope) do |chain, (scope, param)|
8+
params.to_h.inject(periscope_default_scope) do |chain, (scope, param)|
99
periscope_call(chain, scope.to_s, param)
1010
end
1111
end

0 commit comments

Comments
 (0)