]> git.wincent.com - wikitext.git/commitdiff
Simplify Rails 2 auto-initialization
authorWincent Colaiuta <win@wincent.com>
Sat, 12 Jun 2010 18:58:19 +0000 (20:58 +0200)
committerWincent Colaiuta <win@wincent.com>
Sat, 12 Jun 2010 18:58:19 +0000 (20:58 +0200)
Now that:

  require 'wikitext'

Effectively does the work that 'rails/init.rb' used to do, the latter
can now be reduced to just that:

  require 'wikitext'

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

index 7c09d2e9fb0823308c5ca3864e6cc62899dd112e..acfdd6e23507857fb32ecac7271fd13946a5c1ce 100644 (file)
@@ -25,7 +25,5 @@
 unless $gems_build_rake_task
   # avoid Rails bug #2266 by not requiring during "rake gems:build"
   # see: https://rails.lighthouseapp.com/projects/8994/tickets/2266
-  require 'wikitext/nil_class'
-  require 'wikitext/string'
-  require 'wikitext/rails_template_handler'
+  require 'wikitext'
 end