Use find_by instead of where + first
Update usages of `where.first` and change them to use `find_by` instead. # bad User.where(name: 'Bruce').first User.where(name: 'Bruce').take # good User.find_by(name: 'Bruce')
Showing
Please register or sign in to comment