is there any way to avoid the creation of init.rb?

4 views
Skip to first unread message

agibralter

unread,
Nov 9, 2009, 11:56:38 AM11/9/09
to Haml
haml-2.2.9/lib/haml/template.rb:57 seems to be creating a vendor/
plugins/haml/init.rb file. This is is not compatible with the
config.gem 'haml' way of doing things... config.gem already
automatically requires haml, so there is no need for the require
'haml' in init.rb. Also, since the require 'haml' line is forcibly
inserted into vendor/plugins/haml/init.rb I often get version problems
like "another version of haml has already been required" since the
require 'haml' in init.rb runs before config.gem 'haml', :version =>
'2.2.9'.

Is there any chance this functionality could be removed from future
versions of haml?

agibralter

unread,
Nov 9, 2009, 12:07:29 PM11/9/09
to Haml
Ah ok nevermind... it seeems like it only **re**-creates init.rb. I
won't create a vendor/plugins/haml/init.rb out of the blue. I went
ahead and deleted init.rb and I think that solves my problem.
Reply all
Reply to author
Forward
0 new messages