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:
parent
e73b0b84d9
commit
47ceb135c6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue