lib/helmet/api.rb in helmet-0.0.4 vs lib/helmet/api.rb in helmet-0.0.5
- old
+ new
@@ -80,12 +80,12 @@
# evaluate filters
resp = catch(:halt) do
@@before_filters.each do |route|
case route.first
when String
- route[1].call if route.first == path
+ route[1].call(env) if route.first == path
when Regexp
- route[1].call if route.first =~ path
+ route[1].call(env) if route.first =~ path
end
end
nil
end
p resp
\ No newline at end of file