Commit 20446fe040f50016563b6c322bf8bcaf092f299e
1 parent
8c4e4f4b
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
@@ -8,6 +8,10 @@ class User < ActiveRecord::Base | @@ -8,6 +8,10 @@ class User < ActiveRecord::Base | ||
8 | N_('Password confirmation') | 8 | N_('Password confirmation') |
9 | N_('Terms accepted') | 9 | N_('Terms accepted') |
10 | 10 | ||
11 | + SEARCHABLE_FIELDS = { | ||
12 | + :email => 5, | ||
13 | + } | ||
14 | + | ||
11 | def self.[](login) | 15 | def self.[](login) |
12 | self.find_by_login(login) | 16 | self.find_by_login(login) |
13 | end | 17 | end |