Skip to content

Instantly share code, notes, and snippets.

@spastorino
Created December 21, 2011 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spastorino/6a13a8617aac7e3ca950 to your computer and use it in GitHub Desktop.
Save spastorino/6a13a8617aac7e3ca950 to your computer and use it in GitHub Desktop.
diff --git a/lib/sass/rails/railtie.rb b/lib/sass/rails/railtie.rb
index 90a5a71..377e563 100644
--- a/lib/sass/rails/railtie.rb
+++ b/lib/sass/rails/railtie.rb
@@ -30,7 +30,7 @@ module Sass::Rails
# to the rails generate command
config.app_generators.stylesheet_engine config.sass.preferred_syntax
- config.before_initialize do
+ initializer :register_engines, :group => :all do
require 'sass'
# Assume dependency on sprockets, not on app.config.assets enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment