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