]> git.wincent.com - wikitext.git/commitdiff
Work around Rails bug #2266
authorWincent Colaiuta <win@wincent.com>
Fri, 27 Mar 2009 11:12:46 +0000 (12:12 +0100)
committerWincent Colaiuta <win@wincent.com>
Fri, 27 Mar 2009 11:12:46 +0000 (12:12 +0100)
See:
  https://rails.lighthouseapp.com/projects/8994/tickets/2266

Signed-off-by: Wincent Colaiuta <win@wincent.com>
rails/init.rb

index d201b626b430e69b1f69f81e88da679babd60317..fba7edddbd028fe54762a003d1995a489498a464 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2008 Wincent Colaiuta
+# Copyright 2008-2009 Wincent Colaiuta
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require 'wikitext/nil_class'
-require 'wikitext/string'
-require 'wikitext/rails'
+# Avoid Rails bug #2266 by not requiring during "rake gems:build"
+# See: https://rails.lighthouseapp.com/projects/8994/tickets/2266
+unless $gems_build_rake_task
+  require 'wikitext/nil_class'
+  require 'wikitext/string'
+  require 'wikitext/rails'
+end