README.md in actionview-rev_manifest-0.1.1 vs README.md in actionview-rev_manifest-0.2.0

- old
+ new

@@ -17,12 +17,33 @@ ``` ## Setup ```rb -#config/initializers/actionview-rev_manifest.rb +# config/environments/production.rb -RevManifest.enabled = Rails.env.production? +MyApp::Application.config do + config.rev_manifest.enabled = true +end +``` + +### With Sprockets + +If you want to serve some assets with RevManifest and rest of them with Sprockets, specify all +sources' name, which you want to serve with RevManifest, as `config.rev_manifest.sources`: + +```rb +MyApp::Application.config do + config.rev_manifest.sources = ["new_application.js", "new_application.css"] +end +``` + +In addition, make sure that sprockets is loaded ahead: + +```rb +# Gemfile +gem "sprockets" +gem "actionview-rev_manifest" ``` ## Sample gulpfile.coffee ```coffee