Module: Mack::Assets

Included in:
ViewHelpers::HtmlHelpers, ViewHelpers::LinkHelpers
Defined in:
lib/mack/assets/assets_mgr.rb,
lib/mack/assets/asset_helpers.rb

Defined Under Namespace

Classes: Bundle, Helpers, Manager

Instance Method Summary collapse

Instance Method Details

#get_resource_root(resource) ⇒ Object



4
5
6
7
8
9
# File 'lib/mack/assets/asset_helpers.rb', line 4

def get_resource_root(resource)
  path = ""
  path = Mack::Assets::Helpers.instance.asset_hosts(resource) if path.empty?
  path = "#{configatron.mack.distributed.site_domain}" unless !path.empty? or configatron.mack.distributed.site_domain.nil?
  return path
end