module Auth::TestBackdoor macro included before test_backdoor end private def test_backdoor if LuckyEnv.test? && (user_id = params.get?(:backdoor_user_id)) user = UserQuery.find(user_id) sign_in user end continue end end