Module: SprocketsApplication

Defined in:
lib/sprockets_application.rb

Class Method Summary collapse

Class Method Details

.install_assetsObject



19
20
21
# File 'lib/sprockets_application.rb', line 19

def install_assets
  secretary.install_assets
end

.install_scriptObject



15
16
17
# File 'lib/sprockets_application.rb', line 15

def install_script
  concatenation.save_to(asset_path)
end

.routes(map) ⇒ Object



6
7
8
# File 'lib/sprockets_application.rb', line 6

def routes(map)
  map.resource(:sprockets)
end

.source(group = nil) ⇒ Object



10
11
12
13
# File 'lib/sprockets_application.rb', line 10

def source(group = nil)
  @group = group || "default"
  concatenation.to_s
end