Rails gem-plugin compatibility, why not?

This commit is contained in:
Nathan Weizenbaum 2008-07-18 11:15:44 -04:00
parent 9016da55f5
commit 2dc50fd434
1 changed files with 7 additions and 0 deletions

7
rails/init.rb Normal file
View File

@ -0,0 +1,7 @@
begin
require File.join(File.dirname(__FILE__), 'lib', 'haml') # From here
rescue LoadError
require 'haml' # From gem
end
Haml.init_rails(binding)