Skip to content

Commit

Permalink
Fixed 'uninitialized constant BetterErrors::Middleware::VERSION' in l…
Browse files Browse the repository at this point in the history
…ib/better_errors/middleware.rb by using BetterErrors::Version, not the nonexistent VERSION constant of Middleware.
  • Loading branch information
Addison Martin committed Oct 2, 2020
1 parent be7475b commit 0ac88dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/better_errors/middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def self.allow_ip!(addr)
allow_ip! "127.0.0.0/8"
allow_ip! "::1/128" rescue nil # windows ruby doesn't have ipv6 support

CSRF_TOKEN_COOKIE_NAME = "BetterErrors-#{VERSION}-CSRF-Token"
CSRF_TOKEN_COOKIE_NAME = "BetterErrors-#{BetterErrors::VERSION}-CSRF-Token"

# A new instance of BetterErrors::Middleware
#
Expand Down

0 comments on commit 0ac88dc

Please sign in to comment.