1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-23 02:58:16 +09:00
mastodon/app/helpers/instance_helper.rb
Matt Jankowski 389f8f8249 Instance helper to replace site title helper (#2038)
* Move site title helper to instance helper (name change only)

* Remove newline in <title> tag

* Add site_hostname helper method to wrap up local_domain value

* Use site_hostname helper in places that need local_domain value
2017-04-18 00:16:32 +02:00

12 lines
174 B
Ruby

# frozen_string_literal: true
module InstanceHelper
def site_title
Setting.site_title.to_s
end
def site_hostname
Rails.configuration.x.local_domain
end
end