Commit 35c3c598acbe898c1914bd13da302d27ff22ee0b
1 parent
dc336779
Exists in
master
and in
29 other branches
includes email in User::SEARCHABLE_FIELDS since it is reasonable
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
app/models/user.rb
@@ -11,6 +11,10 @@ class User < ActiveRecord::Base | @@ -11,6 +11,10 @@ class User < ActiveRecord::Base | ||
11 | N_('Password confirmation') | 11 | N_('Password confirmation') |
12 | N_('Terms accepted') | 12 | N_('Terms accepted') |
13 | 13 | ||
14 | + SEARCHABLE_FIELDS = { | ||
15 | + :email => 5, | ||
16 | + } | ||
17 | + | ||
14 | def self.[](login) | 18 | def self.[](login) |
15 | self.find_by_login(login) | 19 | self.find_by_login(login) |
16 | end | 20 | end |