Commit 20446fe040f50016563b6c322bf8bcaf092f299e

Authored by Larissa Reis
1 parent 8c4e4f4b

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 8 N_('Password confirmation')
9 9 N_('Terms accepted')
10 10  
  11 + SEARCHABLE_FIELDS = {
  12 + :email => 5,
  13 + }
  14 +
11 15 def self.[](login)
12 16 self.find_by_login(login)
13 17 end
... ...