From 5aec73daf5ea144ac9f2a4e15c6807cc2dcb87b6 Mon Sep 17 00:00:00 2001 From: Teng Siong Ong Date: Tue, 30 Apr 2013 06:49:03 -0700 Subject: [PATCH] Make `rake doc:guides` works again. Fix #10384. --- guides/rails_guides.rb | 2 +- railties/lib/rails/tasks/documentation.rake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/guides/rails_guides.rb b/guides/rails_guides.rb index ab890f202c1..ce409868caf 100644 --- a/guides/rails_guides.rb +++ b/guides/rails_guides.rb @@ -22,7 +22,7 @@ end begin require 'redcarpet' -rescue Gem::LoadError +rescue LoadError # This can happen if doc:guides is executed in an application. $stderr.puts('Generating guides requires Redcarpet 2.1.1+.') $stderr.puts(<