class Skyfire::AssetManifest
Public Class Methods
asset_path(url)
click to toggle source
# File lib/skyfire/asset_manifest.rb, line 27 def self.asset_path(url) if AssetManifest.manifest AssetManifest.manifest[url] || url else url end end
javascript_path(url)
click to toggle source
# File lib/skyfire/asset_manifest.rb, line 18 def self.javascript_path(url) if AssetManifest.manifest url += ".js" unless url.end_with?(".js") AssetManifest.manifest[url] || url else url end end
manifest()
click to toggle source
# File lib/skyfire/asset_manifest.rb, line 3 def self.manifest if File.exists?("rev-manifest.json") @manifest ||= JSON.parse(File.read("rev-manifest.json")) end end
stylesheet_path(url)
click to toggle source
# File lib/skyfire/asset_manifest.rb, line 9 def self.stylesheet_path(url) if AssetManifest.manifest url += ".css" unless url.end_with?(".css") AssetManifest.manifest[url] || url else url end end