helmet 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/helmet/api.rb +2 -2
- metadata +1 -1
data/lib/helmet/api.rb
CHANGED
@@ -82,9 +82,9 @@ module Helmet
|
|
82
82
|
@@before_filters.each do |route|
|
83
83
|
case route.first
|
84
84
|
when String
|
85
|
-
route[1].call if route.first == path
|
85
|
+
route[1].call(env) if route.first == path
|
86
86
|
when Regexp
|
87
|
-
route[1].call if route.first =~ path
|
87
|
+
route[1].call(env) if route.first =~ path
|
88
88
|
end
|
89
89
|
end
|
90
90
|
nil
|