Rails gem-plugin compatibility, why not?
This commit is contained in:
parent
9016da55f5
commit
2dc50fd434
|
@ -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)
|
Loading…
Reference in New Issue