Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
don't try to bootstrap if Haml constant is not defined
Browse files Browse the repository at this point in the history
this handles the "rake gems:install" case where the
application and plugins load, but not gems
  • Loading branch information
mislav committed Sep 9, 2009
1 parent 718cb76 commit 733cd2b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions init.rb
@@ -1,9 +1,12 @@
Haml::init_rails(binding) unless defined? Haml::Template
require 'standardista'
require 'standardista/implicit_tags'
if defined? Haml
Haml::init_rails(binding) unless defined? Haml::Template

config.after_initialize do
unless :xhtml == Haml::Template::options[:format]
require 'standardista/rails_override'
require 'standardista'
require 'standardista/implicit_tags'

config.after_initialize do
unless :xhtml == Haml::Template::options[:format]
require 'standardista/rails_override'
end
end
end

0 comments on commit 733cd2b

Please sign in to comment.