Method: ActionDispatch::Routing::Mapper#set_omniauth_path_prefix!
- Defined in:
- lib/devise/rails/routes.rb
#set_omniauth_path_prefix!(path_prefix) ⇒ Object (protected)
:nodoc:
487 488 489 490 491 492 493 494 495 496 |
# File 'lib/devise/rails/routes.rb', line 487 def set_omniauth_path_prefix!(path_prefix) #:nodoc: if ::OmniAuth.config.path_prefix && ::OmniAuth.config.path_prefix != path_prefix raise "Wrong OmniAuth configuration. If you are getting this exception, it means that either:\n\n" \ "1) You are manually setting OmniAuth.config.path_prefix and it doesn't match the Devise one\n" \ "2) You are setting :omniauthable in more than one model\n" \ "3) You changed your Devise routes/OmniAuth setting and haven't restarted your server" else ::OmniAuth.config.path_prefix = path_prefix end end |