I have a messages controller, so that printers and users can send messages to each other. I need to Auth both printers and user. Is there a way of doing something like below in the controller?
before_action :authenticate_printer! || before_action :authenticate_user!