tuist/projects/cloud/app/controllers/root_controller.rb

17 lines
303 B
Ruby

# frozen_string_literal: true
class RootController < ApplicationController
include Pundit::Authorization
skip_before_action :authenticate_user!
def app
if current_user.nil?
render(layout: "landing_page")
return
end
authenticate_user!
render(layout: "app")
end
end