mirror of
https://github.com/wahyd4/libr-2.git
synced 2026-08-09 05:15:53 +10:00
#10 Add config for production env.
This commit is contained in:
@@ -265,7 +265,10 @@ Devise.setup do |config|
|
||||
# so you need to do it manually. For the users scope, it would be:
|
||||
# config.omniauth_path_prefix = '/my_engine/users/auth'
|
||||
|
||||
config.omniauth :weibo, '3760369619', 'c39d951278dfcc5fc55b15e1808e210f', :scope => 'user,public_repo'
|
||||
|
||||
if Rails.env.production?
|
||||
config.omniauth :weibo, '1154990879', '6b901a95751bf222fbe5c51451da5078', :scope => 'user,public_repo'
|
||||
else
|
||||
config.omniauth :weibo, '3760369619', 'c39d951278dfcc5fc55b15e1808e210f', :scope => 'user,public_repo'
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user