Skip to content

Instantly share code, notes, and snippets.

@1c7
Created January 16, 2017 05:04
Show Gist options
  • Select an option

  • Save 1c7/a65f7983aaf76455ebfd8f8784d46e5d to your computer and use it in GitHub Desktop.

Select an option

Save 1c7/a65f7983aaf76455ebfd8f8784d46e5d to your computer and use it in GitHub Desktop.
# Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
config.omniauth :wechat, Rails.application.config.open_weixin_app_id, Rails.application.config.open_weixin_app_screct, :authorize_params => {:scope => "snsapi_userinfo"}
# ....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment