Replies: 2 comments
-
Not necessary; we only use it in the context of The reason why it's public now is that we add via including a module; and dealing with visibility in that case (i.e., adding |
Beta Was this translation helpful? Give feedback.
-
Thanks @palkan. I notice you're using So you could just do:
|
Beta Was this translation helpful? Give feedback.
-
I noticed that
implicit_authorization_target
is a public method inaction_policy
on the controller.Does it need to be public? It feels a bit wrong to have it as a public method on my controllers as that's the convention to use for declaring controller actions (though that's just a hangup from early Rails where public methods were inherently actions on controllers - not the case anymore with restful routes).
What are your thoughts @palkan?
Beta Was this translation helpful? Give feedback.
All reactions