Commit 35c3c598acbe898c1914bd13da302d27ff22ee0b

Authored by Larissa Reis
1 parent dc336779

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