You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be preferred to have a configuration toggle for whether FindBy should flag where.first or only where.take
Since the SQL generated by where.first is different than where.take these should not both be flagged by the same cop configuration. Developers should be able to utilize this cop without necessarily opting-in to potentially unsafe behavior.
The cop overview should also be revised to make note that updating where.first to find_by could be potentially unsafe.
The text was updated successfully, but these errors were encountered:
I think it would be preferred to have a configuration toggle for whether FindBy should flag
where.first
or onlywhere.take
Since the SQL generated by
where.first
is different thanwhere.take
these should not both be flagged by the same cop configuration. Developers should be able to utilize this cop without necessarily opting-in to potentially unsafe behavior.The cop overview should also be revised to make note that updating
where.first
tofind_by
could be potentially unsafe.The text was updated successfully, but these errors were encountered: