Created
December 6, 2011 12:41
-
-
Save kozo002/1438080 to your computer and use it in GitHub Desktop.
ActiveAdmin use https
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
| group :production do | |
| gem 'rack-ssl-enforcer', :require => 'rack/ssl-enforcer' | |
| end |
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
| if ENV['RACK_ENV'] == 'production' | |
| AppName::Application.config.middleware.insert_before(ActionDispatch::Cookies, Rack::SslEnforcer, :only => /^\/admin/) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment