mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
a00921f417
Right now if you try to use a route that you have defined in your `omniauth_callbacks` but you have not declared that resource to be `omniauthable` you will get a weird route missing error which causes the user to look in the routes for the fix: ```ruby devise_for :users, controllers: {omniauth_callbacks: "users/omniauth_callbacks"} ``` This PR checks to see if the mapping of `:user` has the module `omniauthable` included in it when `omniauth_callbacks` is specified in the route. If it does not, an instructional error is raised: ``` Mapping omniauth_callbacks on a resource that is not omniauthable Please add `devise :omniauthable` to the `User` model ``` |
||
---|---|---|
.. | ||
controllers | ||
hooks | ||
mailers | ||
models | ||
omniauth | ||
orm | ||
rails | ||
strategies | ||
delegator.rb | ||
failure_app.rb | ||
mapping.rb | ||
models.rb | ||
modules.rb | ||
omniauth.rb | ||
parameter_filter.rb | ||
parameter_sanitizer.rb | ||
rails.rb | ||
test_helpers.rb | ||
time_inflector.rb | ||
token_generator.rb | ||
version.rb |