I want to enforce authentication to Devise registration controller's new
and create
function because I am implementing a custom sign_up mechanism that requires an admin to sign in first.
But Devise is forcing require_no_authentication
on new
and create
with prepend_before_action
.
According to Rails, I can skip_before_action
, however,
how do I force skipping prepend_before_action
?
Doesn't skip_before_action
work for you? A before_action
is just an alias for append_before_action
and I think it does not matter whether the callback is appended or prepended to the list of callbacks to be allowed to be skipped with skip_before_action
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With