helmet 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/helmet/api.rb +2 -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
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: helmet
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thiago Lewin