Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-illi committed Sep 18, 2023
1 parent cd4831b commit 6a32c72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/concerns/hostnamed_groups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module HostnamedGroups
prepend_before_action :determine_group_by_hostname
end

# Initialize @group by matching the current request hostname.
# This is used in LayoutHelper#header_logo to show a specific group logo depending on the hostname.
def determine_group_by_hostname
@group ||= Group.where(hostname: request.host).first
end
Expand Down

0 comments on commit 6a32c72

Please sign in to comment.