Sha256: 15fa695e89bd71ccd6a9dd6bbe9ee90044758b2d61ca94dc6a5a1734aebaf2cf
Contents?: true
Size: 311 Bytes
Versions: 1
Compression:
Stored size: 311 Bytes
Contents
if defined?(Rails) module Sprockets class CommonJSEngine < Rails::Engine config.after_initialize do Rails.application.assets.register_postprocessor 'application/javascript', CommonJS Rails.application.assets.append_path File.expand_path('../..', __FILE__) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprockets-commonjs-0.0.3 | lib/sprockets/engine.rb |