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,6 +7,7 @@ class User | ||
| 7 | :recoverable, :rememberable, :trackable, | 7 | :recoverable, :rememberable, :trackable, |
| 8 | :validatable, :token_authenticatable | 8 | :validatable, :token_authenticatable |
| 9 | 9 | ||
| 10 | + field :email | ||
| 10 | field :name | 11 | field :name |
| 11 | field :admin, :type => Boolean, :default => false | 12 | field :admin, :type => Boolean, :default => false |
| 12 | field :per_page, :type => Fixnum, :default => PER_PAGE | 13 | field :per_page, :type => Fixnum, :default => PER_PAGE |
| @@ -45,3 +46,4 @@ class User | @@ -45,3 +46,4 @@ class User | ||
| 45 | watchers.each(&:destroy) | 46 | watchers.each(&:destroy) |
| 46 | end | 47 | end |
| 47 | end | 48 | end |
| 49 | + |