Skip to content

Commit

Permalink
Attempt to fall back to the builder gem, when the stdlib require fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbckt committed Apr 26, 2008
1 parent 55cd7b5 commit cb600d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/munger/render/html.rb
@@ -1,4 +1,10 @@
require 'builder'
begin
require 'builder'
rescue LoadError
require 'rubygems'
require 'builder'
end

module Munger
module Render
class Html
Expand Down

0 comments on commit cb600d8

Please sign in to comment.