Created
March 22, 2012 15:23
-
-
Save 3den/2158995 to your computer and use it in GitHub Desktop.
how to overload device settings?
This file contains 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
before_filter :config_old_domain | |
def config_old_domain | |
return if request.domain == Settings.domain | |
Devise.setup do |config| | |
config.omniauth( | |
:facebook, | |
Settings.omniauth.old_facebook.app_id, | |
Settings.omniauth.old_facebook.app_secret, | |
{:client_options => {:ssl => | |
{:ca_path => '/etc/pki/tls/certs/', | |
:ca_file => '/etc/pki/tls/certs/ca-bundle.crt'} | |
}} | |
) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment