You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I attempt to use an :scss block in a haml template, I get the following error:
uninitialized constant Haml::Filters::SassImporter
The reason seems to be the following commit in sass-rails that made Sass::Rails::SassTemplate no longer a subclass of Sprockets::SassTemplate rails/sass-rails@e123a39
I believe that the fix (which works for me locally) is to remove the class selection at the top of sass_importer.rb and just go with Sprockets::SassTemplate.class_eval(...) but I'm not very familiar with most of what is going on in here, so I wanted to check with folks familiar with the code to find out if that would break something (@twalpole I'm tagging you because you made the change).
There is a related but in the haml-rails project: haml/haml-rails#77 - but I'm pretty sure the change should happen in compass-rails.
I'll try and submit a PR as soon as I'm able.
The text was updated successfully, but these errors were encountered:
I'm using:
compass-rails 2.0.4
sass-rails 5.0.1
haml-rails 0.8.2
When I attempt to use an :scss block in a haml template, I get the following error:
uninitialized constant Haml::Filters::SassImporter
The reason seems to be the following commit in sass-rails that made Sass::Rails::SassTemplate no longer a subclass of Sprockets::SassTemplate
rails/sass-rails@e123a39
I believe that the fix (which works for me locally) is to remove the class selection at the top of sass_importer.rb and just go with Sprockets::SassTemplate.class_eval(...) but I'm not very familiar with most of what is going on in here, so I wanted to check with folks familiar with the code to find out if that would break something (@twalpole I'm tagging you because you made the change).
There is a related but in the haml-rails project: haml/haml-rails#77 - but I'm pretty sure the change should happen in compass-rails.
I'll try and submit a PR as soon as I'm able.
The text was updated successfully, but these errors were encountered: