Permalink
Browse files

We don't need these constants anymore.

  • Loading branch information...
1 parent 9001797 commit 987e65ae43e3a62989af1917d6a0f9f7ccbb2335 @krainboltgreene committed Mar 16, 2013
Showing with 4 additions and 14 deletions.
  1. +3 −3 config/initializers/devise.rb
  2. +1 −1 config/initializers/omniauth.rb
  3. +0 −10 config/reader_setup.rb
@@ -205,9 +205,9 @@
# Add a new OmniAuth provider. Check the wiki for more information on setting
# up on your models and hooks.
# config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
- #config.omniauth :facebook, Reader::Keys::FACEBOOK_API_KEY, Reader::Keys::FACEBOOK_SECRET
- #config.omniauth :google_oauth2, Reader::Keys::GOOGLE_API_KEY, Reader::Keys::GOOGLE_SECRET
- #config.omniauth :developer unless Rails.env.production?
+ # config.omniauth :facebook, ENV['FACEBOOK_API_KEY'], ENV['FACEBOOK_API_SECRET']
+ # config.omniauth :google_oauth2, ENV['GOOGLE_API_KEY'], ENV['GOOGLE_API_SECRET']
+ # config.omniauth :developer unless Rails.env.production?
# ==> Warden configuration
@@ -1,5 +1,5 @@
#Rails.application.config.middleware.use OmniAuth::Builder do
# #provider :developer unless Rails.env.production?
-# #provider :facebook, ENV["FACEBOOK_API_KEY"], ENV["FACEBOOK_SECRET"]
+# #provider :facebook, ENV["FACEBOOK_API_KEY"], ENV["FACEBOOK_API_SECRET"]
# #provider :google_oauth2, ENV["GOOGLE_API_KEY"], ENV["GOOGLE_API_SECRET"], {access_type: 'online', approval_prompt: ''}
#end
View
@@ -1,14 +1,4 @@
module Reader
- module Keys
- SMTP_PASS = ENV['SMTP_PASS']
-
- FACEBOOK_API_KEY = ENV['FACEBOOK_API_KEY']
- FACEBOOK_SECRET = ENV['FACEBOOK_API_SECRET']
-
- GOOGLE_API_KEY = ENV['GOOGLE_API_KEY']
- GOOGLE_SECRET = ENV['GOOGLE_API_SECRET']
- end
-
class Setup
def self.users
users = User.count

0 comments on commit 987e65a

Please sign in to comment.