Whenever Haml notices a discrepancy between the init.rb file stored in the gem and the init.rb file installed in the Rails application, it updates the installed file. This helps make sure that Haml is always loaded properly. init.rb isn't changed very often, though (one change was added prior to 2.0.0 and another, the comment in your patch below, prior to 2.0.4) so the only explanation that I can come up with is that you're occasionally loading different versions of the gem. I'd reccommend making sure you only have the most recent version (2.0.6) installed anywhere.
- Nathan On Fri, Dec 26, 2008 at 5:23 PM, Matt Harrison <[email protected] > wrote: > > Unfortunately, that didn't work. > > I removed the old 2.0.2 gem and commited "haml doing it's thing" for > hopefully the last time. Then I did a revision or two fixing some page > layout problems. Now however haml is back, this time with exactly the > opposite change: > > Index: vendor/plugins/haml/init.rb > =================================================================== > --- vendor/plugins/haml/init.rb (revision 97) > +++ vendor/plugins/haml/init.rb (working copy) > @@ -4,4 +4,5 @@ > require 'haml' # From gem > end > > +# Load Haml and Sass > Haml.init_rails(binding) > > It seems weird for haml to keep adding and removing a single comment > line, whatever the reason...but maybe I've just been having too much > xmas alcohol :P > > I'll leave it for now and see if anyone has an idea and proves me too > drunk for rails work :D > > Thanks > > Matt > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
