Updated

app/controllers / internal_controller.rb

A
9 lines of codes
1 methods
7.5 complexity/method
6 churn
7.47 complexity
0 duplications
class InternalController < ApplicationController
  1. InternalController has no descriptive comment
before_action :sign_in_preview_env before_action :authenticate_user! layout "internal" def sign_in_preview_env sign_in User.first if ENV['PREVIEW_APP'].present? && current_user.blank? end end