Skip to content

Commit

Permalink
Fix small error in documentation.
Browse files Browse the repository at this point in the history
Both examples about how to exclude modules still had the modules to be
disabled (:confirmable and :omniauthable respectively).
  • Loading branch information
Edgar Henríquez committed Dec 22, 2014
1 parent 332da27 commit efd3f94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,9 @@ class User < ActiveRecord::Base

# notice this comes BEFORE the include statement below
# also notice that :confirmable is not included in this block
devise :database_authenticatable, :confirmable,
:recoverable, :trackable, :validatable,
:registerable
devise :database_authenticatable, :recoverable,
:trackable, :validatable, :registerable,
:omniauthable

# note that this include statement comes AFTER the devise block above
include DeviseTokenAuth::Concerns::User
Expand All @@ -555,7 +555,7 @@ class User < ActiveRecord::Base
# notice that :omniauthable is not included in this block
devise :database_authenticatable, :confirmable,
:recoverable, :trackable, :validatable,
:registerable, :omniauthable
:registerable

include DeviseTokenAuth::Concerns::User
end
Expand Down

0 comments on commit efd3f94

Please sign in to comment.