README.md in omniauth-multiple_providers-0.0.2 vs README.md in omniauth-multiple_providers-0.0.3
- old
+ new
@@ -39,10 +39,12 @@
Or install it yourself as:
$ gem install omniauth-multiple_providers
+## Usage
+
`app/models/user.rb` (generated by Devise) do not use `:omniauthable`.
``` ruby
# app/models/user.rb
class User < ActiveRecord::Base
@@ -58,33 +60,36 @@
``` sh
$ rails generate omniauth:multiple_providers:install
$ rake db:migrate # => create provider_users table
```
-## Usage
-
You can use `new_omniauth_path(provider: :provider_name)`, and It redirect_to `/auth/:provider_name`.
And automatically receive callback, and Save to `ProviderUser`(app/models/provider_user.rb).
``` haml
%ul
%li
- = link_to new_omniauth_path(provider: :twitter), 'data-no-turbolink' => true do
+ = link_to new_omniauth_path(provider: :twitter) do
Signup with Twitter
%li
- = link_to new_omniauth_path(provider: :facebook), 'data-no-turbolink' => true do
+ = link_to new_omniauth_path(provider: :facebook) do
Signup with Facebook
%li
- = link_to new_omniauth_path(provider: :github), 'data-no-turbolink' => true do
+ = link_to new_omniauth_path(provider: :github) do
Signup with Github
```
And if you remove connection to Providers,
``` ruby
= link_to omniauth_path(:twitter), method: :delete do
cancel connection
```
+
+## TODO
+
+- Drop Dependency of Devise
+- Configuratable with initializer
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)