lib/generators/templates/omniauth.rb in dailycred-0.1.29 vs lib/generators/templates/omniauth.rb in dailycred-0.1.30

- old
+ new

@@ -2,14 +2,10 @@ Rails.configuration.DAILYCRED_SECRET_KEY = "<%= secret_key %>" dc_id = Rails.configuration.DAILYCRED_CLIENT_ID dc_secret = Rails.configuration.DAILYCRED_SECRET_KEY -dc_options = { :client_options => { - :site => "https://www.dailycred.com", - :authorize_url => '/oauth/authorize', - :token_url => '/oauth/access_token' - } } +dc_options = { :client_options => {} } if File.exists?('/etc/ssl/certs') dc_options[:client_options][:ssl] = { :ca_path => '/etc/ssl/certs'} end if File.exists?('/opt/local/share/curl/curl-ca-bundle.crt') \ No newline at end of file