Permalink
Browse files

must register preprocessor in initializer; the magic config object is…

… not magic enough
  • Loading branch information...
1 parent 91b9d6f commit 15129f36b5853d070ce1daaef71b289d9eff4c8a @niklas niklas committed Mar 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -8,9 +8,9 @@ Example usage
gem install sprockets-urlrewriter
-In rails:
+In rails, within your own initializer:
- config.assets.register_preprocessor 'text/css', Sprockets::UrlRewriter
+ Rails.application.assets.register_preprocessor 'text/css', Sprockets::UrlRewriter
In config.ru (if you're using Sinatra)

0 comments on commit 15129f3

Please sign in to comment.