aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides.rb
diff options
context:
space:
mode:
authorTeng Siong Ong <siong1987@gmail.com>2013-04-30 06:49:03 -0700
committerTeng Siong Ong <siong1987@gmail.com>2013-04-30 06:49:03 -0700
commit5aec73daf5ea144ac9f2a4e15c6807cc2dcb87b6 (patch)
tree6ce2900efb5141b104910a03f107dd114d31135f /guides/rails_guides.rb
parenta834b57b6e6028eebf6ec29c550f5328a527f487 (diff)
downloadrails-5aec73daf5ea144ac9f2a4e15c6807cc2dcb87b6.tar.gz
rails-5aec73daf5ea144ac9f2a4e15c6807cc2dcb87b6.tar.bz2
rails-5aec73daf5ea144ac9f2a4e15c6807cc2dcb87b6.zip
Make `rake doc:guides` works again. Fix #10384.
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?