aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/basic_object.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-10-07 09:15:26 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-10-07 09:15:26 +0000
commit845e6ff45a704d1cb0495a31c05f5cb190252a43 (patch)
treeea6aa68ccb5f2e93e2c95986300c5b043d4ec960 /activesupport/lib/active_support/basic_object.rb
parent4430a00c048c195d6fbfb3eacb2bb195f709ac1a (diff)
downloadrails-845e6ff45a704d1cb0495a31c05f5cb190252a43.tar.gz
rails-845e6ff45a704d1cb0495a31c05f5cb190252a43.tar.bz2
rails-845e6ff45a704d1cb0495a31c05f5cb190252a43.zip
String#to_xs uses the fast_xs extension if available for Builder speedup.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/basic_object.rb')
-rw-r--r--activesupport/lib/active_support/basic_object.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/basic_object.rb b/activesupport/lib/active_support/basic_object.rb
index 7a3d1a9ed0..1464f9d9b7 100644
--- a/activesupport/lib/active_support/basic_object.rb
+++ b/activesupport/lib/active_support/basic_object.rb
@@ -1,6 +1,5 @@
-# Ruby 1.9 introduces BasicObject. Use Builder's BlankSlate before then.
+# Ruby 1.9 introduces BasicObject. Use Builder's BlankSlate until then.
unless defined? BasicObject
- require 'rubygems'
- require 'builder'
+ require 'builder/blankslate'
BasicObject = Builder::BlankSlate
end