Files
devise/test
schneems a00921f417 [close #2755] Raise incompatible route error
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
```
2013-12-18 19:19:25 -06:00
..
2013-12-05 09:03:32 +01:00
2013-12-05 09:03:32 +01:00
2013-12-05 09:03:32 +01:00
2013-12-05 09:03:32 +01:00
2013-12-05 09:03:32 +01:00
2013-08-05 11:24:04 +02:00
2013-11-13 13:29:25 +01:00
2013-11-08 16:22:31 -02:00