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
It might be worth to see if possible or just makes sense to add a scope_by key in the Model arguments.
This comes from experience where people prefer to do this:
It might be worth to see if possible or just makes sense to add a
scope_by
key in theModel
arguments.This comes from experience where people prefer to do this:
Over
Simply for "security" reason.
So this is what we could have:
step Model(Broadcast, :find_by, scope_by: :current_user)
where current_user is passed in
ctx
->ctx[:current_user]
We add a step to extract the scope with failure end similar on what is done in
Contract::Validate
.Should we think to add this or not really?
The text was updated successfully, but these errors were encountered: