Skip to content

Instantly share code, notes, and snippets.

@kozo002
Created December 6, 2011 12:41
Show Gist options
  • Select an option

  • Save kozo002/1438080 to your computer and use it in GitHub Desktop.

Select an option

Save kozo002/1438080 to your computer and use it in GitHub Desktop.
ActiveAdmin use https
group :production do
gem 'rack-ssl-enforcer', :require => 'rack/ssl-enforcer'
end
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