app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :authenticate_user!
before_action :set_properties
def set_properties
@activate_repository = false
@body_class = "default"
@page_title = ""
end
end