app.kluk.fr/app/controllers/home_controller.rb
Christophe Robillard 939668c4fb
Some checks failed
CI / lint (push) Has been cancelled
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / test (push) Has been cancelled
guess moods according to user pref
2026-02-27 15:51:21 +01:00

12 lines
252 B
Ruby

class HomeController < ApplicationController
allow_unauthenticated_access
def index
@user = User.find_by(username: request.subdomain)
if @user&.public?
render "moods/index"
else
redirect_to dashboard_path
end
end
end