Skip to content

Commit

Permalink
Rails gem-plugin compatibility, why not?
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Jul 18, 2008
1 parent 9016da5 commit 2dc50fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rails/init.rb
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 2dc50fd

Please sign in to comment.