Simplify log in for request specs.

This commit is contained in:
Guo Xiang Tan
2018-03-28 11:31:43 +08:00
parent 70be8124a3
commit 21ae49ab92
4 changed files with 6 additions and 10 deletions

View File

@ -75,7 +75,7 @@ class SessionController < ApplicationController
# For use in development mode only when login options could be limited or disabled.
# NEVER allow this to work in production.
if Rails.env.development?
if !Rails.env.production?
skip_before_action :check_xhr, only: [:become]
def become