Created
March 8, 2013 08:44
-
-
Save bachue/5115052 to your computer and use it in GitHub Desktop.
A bug in actionpack/lib/action_controller/cookies.rb The write_cookies is supposed to return true if Rails.env.test? == true
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def write_cookie?(cookie) | |
@secure || !cookie[:secure] || defined?(Rails.env) && Rails.env.development? | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment