Skip to content

Is there a way to make load_and_authorize_resource run after our authentication method? #712

Answered by ashoofly
ashoofly asked this question in Q&A
Discussion options

You must be logged in to vote

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 calling get my_url:

Minitest::UnexpectedError: NoMethodError: undefined method `after' for #<Array:0x00007faf747a9bf0>

We don't have any method named "after"...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ashoofly
Comment options

Answer selected by ashoofly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant