-
We have set up authentication in the ApplicationController as follows:
This authentication method then loads the
But the load_and_authorize_resource seems to always run before authenticate_with_token, even though it comes after it in the before_action clause. So then we get a NilClass for the user, since we haven't gotten a chance to set it yet. Is there a way to workaround this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Oh, I have discovered
We don't have any method named "after"... |
Beta Was this translation helpful? Give feedback.
Oh, I have discovered
prepend_before_action
, but now I am getting a weird error with no backtrace (it's just at the first line of the test when callingget my_url
:We don't have any method named "after"...