README.md in domp-0.0.2 vs README.md in domp-0.0.3

- old
+ new

@@ -9,10 +9,11 @@ ``` rails generate devise:install rails generate devise User rails generate domp User facebook twitter ``` +You can list as many providers as you want, check out a [full list](https://github.com/intridea/omniauth/wiki/List-of-Strategies) of them. Note: this is not an engine but rather a generator which will generate models, controllers and setup configs for you. You are free to change everything. You are the king. ## Installation @@ -47,16 +48,25 @@ Here's what the `User` model will look like: ```ruby class User < ActiveRecord::Base has_many :authentications, class_name: 'UserAuthentication' - devise :omniauthable, :database_authenticatable, :registerable, - :recoverable, :rememberable, :trackable, :validatable + + devise :omniauthable, :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable + + def self.create_from_omniauth(params) + attributes = { + email: params['info']['email'], + password: Devise.friendly_token + } + + create attributes + end end ``` ### User::OmniauthCallbacksController -Here goes all the logic of creating multiple authentications. You are free to change everything, it's just a boilerplate that will make sense it most of the apps. +Here goes all the logic of creating multiple authentications. You are free to change everything, it's just a boilerplate that will make sense in most of the apps. ### Route additions ```ruby devise_for :users, controllers: { omniauth_callbacks: 'users/omniauth_callbacks' } ```