Merge pull request #1854 from MatheusRich/find-by-over-where-first

Prefer find_by! over where + first!
This commit is contained in:
Jorge Manrubia
2025-12-03 21:51:18 +01:00
committed by GitHub
+1 -1
View File
@@ -35,7 +35,7 @@ class Account < ApplicationRecord
end
def system_user
users.where(role: :system).first!
users.find_by!(role: :system)
end
private