mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-25 18:22:45 -04:00
change where.first -> find_by
This commit is contained in:
@@ -94,7 +94,7 @@ class Member < ActiveRecord::Base
|
||||
if login = conditions.delete(:login)
|
||||
where(conditions).login_name_or_email(login).first
|
||||
else
|
||||
where(conditions).first
|
||||
find_by(conditions)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user