Method: Asset::Util.setup!

Defined in:
lib/assets/util.rb

.setup!Object

Setup assets



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/assets/util.rb', line 5

def self.setup!
  # Load the manifest
  ::Asset.manifest = load_manifest

  # Insert bundles
  %w[css js].each{|type| load_bundle(type)}

  # Load the bundle
  ::Asset.bundle = YAML.load_file(File.join(::Asset.path, 'manifest.yml'))

  # Load the images
  ::Asset.images = load_images
end