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 have a nested resource that is a has_many :through N-to-N relationship with parent resource. This means that when calling authorization methods, I cannot do something like resource.parent, because it's N-to-N, so it's resource.parents.
How can I pass both parent and resource to authorization adapter? For example, how can I do this in member_action, where, calling resource automatically calls authorization adapter?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a nested resource that is a
has_many :through
N-to-N relationship with parent resource. This means that when calling authorization methods, I cannot do something likeresource.parent
, because it's N-to-N, so it'sresource.parents
.How can I pass both
parent
andresource
to authorization adapter? For example, how can I do this inmember_action
, where, callingresource
automatically calls authorization adapter?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions