f96q/kptboard

View on GitHub
app/controllers/application_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception

  if ENV['DEMO_LOGIN'].present?
    before_action { request.variant = :demo_login }
  end
end