2019-07-02 03:10:25 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module InstanceHelper
|
|
|
|
def site_title
|
2020-11-09 12:14:42 -06:00
|
|
|
Setting::SITE_TITLE
|
2019-07-02 03:10:25 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def site_hostname
|
|
|
|
@site_hostname ||= Addressable::URI.parse("//#{Rails.configuration.x.local_domain}").display_uri.host
|
|
|
|
end
|
|
|
|
end
|