From 20446fe040f50016563b6c322bf8bcaf092f299e 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 1ed884a..ed33dd9 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -8,6 +8,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