Module: Spud::ApplicationHelper
- Included in:
- ApplicationController
- Defined in:
- app/helpers/spud/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#current_site_id ⇒ Object
10 11 12 13 |
# File 'app/helpers/spud/application_helper.rb', line 10 def current_site_id config = Spud::Core.site_config_for_host(request.host_with_port) return config[:site_id] unless config.blank? end |
#current_site_name ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/helpers/spud/application_helper.rb', line 2 def current_site_name return Spud::Core.site_name if !Spud::Core.multisite_mode_enabled config = Spud::Core.site_config_for_host(request.host_with_port) return Spud::Core.site_name if config.blank? return config[:site_name] end |