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
If you have a boolean field visible on a model, and a visible scope, this will override the visible? method rails gives you by default, and hit the database to find out the answer.
This is fine mostly, but if you are doing logic on dirty attributes (e.g. in a validation method) this means the value of visible and visible? can give you different answers
The text was updated successfully, but these errors were encountered:
If you have a boolean field
visible
on a model, and avisible
scope, this will override thevisible?
method rails gives you by default, and hit the database to find out the answer.This is fine mostly, but if you are doing logic on dirty attributes (e.g. in a validation method) this means the value of
visible
andvisible?
can give you different answersThe text was updated successfully, but these errors were encountered: