is it possible to have:
before_filter :authenticate_user! || :authenticate_admin!
before_filter :do_authentication
def do_authentication
authenticate_user! || authenticate_admin!
end
before_filter {authenticate_user! || authenticate_admin!}
Passing in a proc to the before_filter method, would be the closest to what you have provided in you question.
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