Created
February 7, 2009 02:04
-
-
Save tbbooher/59731 to your computer and use it in GitHub Desktop.
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 ssl_required? | |
| # (Comment this one line out if you want to test ssl locally) | |
| return false if local_request? | |
| # always return false for tests | |
| return false if RAILS_ENV == 'test' | |
| if RAILS_ENV == 'staging' | |
| # need to set custom request.host | |
| super | |
| else # we need to just use the filters | |
| super | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment