From 35c3c598acbe898c1914bd13da302d27ff22ee0b Mon Sep 17 00:00:00 2001 From: Larissa Reis Date: Sat, 19 Jul 2014 03:27:42 -0300 Subject: [PATCH] includes email in User::SEARCHABLE_FIELDS since it is reasonable --- app/models/user.rb | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 69be0c0..5785c0c 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -11,6 +11,10 @@ class User < ActiveRecord::Base N_('Password confirmation') N_('Terms accepted') + SEARCHABLE_FIELDS = { + :email => 5, + } + def self.[](login) self.find_by_login(login) end -- libgit2 0.21.2