1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Ensure that Rails.env is defined first

This commit is contained in:
Andrew White 2010-10-27 10:30:14 +01:00
parent e73b0b84d9
commit 47ceb135c6

View file

@ -202,7 +202,7 @@ module ActionDispatch
private
def write_cookie?(cookie)
@secure || !cookie[:secure] || Rails.env.development?
@secure || !cookie[:secure] || defined?(Rails.env) && Rails.env.development?
end
end