Class: JavascriptCache

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/javascript_cache.rb

Instance Method Summary collapse

Instance Method Details

#local_urlObject



14
15
16
# File 'app/models/javascript_cache.rb', line 14

def local_url
  "#{Discourse.base_path}#{path}"
end

#urlObject



10
11
12
# File 'app/models/javascript_cache.rb', line 10

def url
  "#{GlobalSetting.cdn_url}#{Discourse.base_path}#{path}"
end