aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides.rb
diff options
context:
space:
mode:
Diffstat (limited to 'guides/rails_guides.rb')
-rw-r--r--guides/rails_guides.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/rails_guides.rb b/guides/rails_guides.rb
index ab890f202c..ce409868ca 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(<<ERROR) if bundler?