Commit 9c3b6ba9fd1b23ab6fa54881a0279218eb21e40e
1 parent
0a9c42d9
Exists in
master
and in
1 other branch
'devise :database_authenticatable' gives us an email field by default, but it do…
…esn't hurt to set it explicitly. Alternative devise strategies don't know about the email field, otherwise.
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/models/user.rb
... | ... | @@ -7,6 +7,7 @@ class User |
7 | 7 | :recoverable, :rememberable, :trackable, |
8 | 8 | :validatable, :token_authenticatable |
9 | 9 | |
10 | + field :email | |
10 | 11 | field :name |
11 | 12 | field :admin, :type => Boolean, :default => false |
12 | 13 | field :per_page, :type => Fixnum, :default => PER_PAGE |
... | ... | @@ -45,3 +46,4 @@ class User |
45 | 46 | watchers.each(&:destroy) |
46 | 47 | end |
47 | 48 | end |
49 | + | ... | ... |