Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 13 lines (10 sloc) 0.379 kb
8b8c8d3 @igrigorik switch to initializer for production support
authored
1 module ClosureProcessor
0aa4cf6 @igrigorik import closure processor
authored
2 class Railtie < Rails::Railtie
3 config.closure = ActiveSupport::OrderedOptions.new
4 config.closure.lib = 'vendor/assets/closure-library/closure'
5
8b8c8d3 @igrigorik switch to initializer for production support
authored
6 initializer :setup_closure do |app|
0aa4cf6 @igrigorik import closure processor
authored
7 app.assets.append_path config.closure.lib
8 app.assets.register_preprocessor 'application/javascript', ClosureDependenciesProcessor
9 end
10
11 end
12 end
Something went wrong with that request. Please try again.