Skip to content


remove backported string interpolation #6327

merged 1 commit into from

2 participants


No description provided.

@carlosantoniodasilva carlosantoniodasilva merged commit bc4ebaf into rails:master
Ruby on Rails member


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 15, 2012
  1. @nashby
This page is out of date. Refresh to see the latest.
1 activesupport/lib/active_support/core_ext/string.rb
@@ -6,7 +6,6 @@
require 'active_support/core_ext/string/access'
require 'active_support/core_ext/string/xchar'
require 'active_support/core_ext/string/behavior'
-require 'active_support/core_ext/string/interpolation'
require 'active_support/core_ext/string/output_safety'
require 'active_support/core_ext/string/exclude'
require 'active_support/core_ext/string/strip'
2 activesupport/lib/active_support/core_ext/string/interpolation.rb
@@ -1,2 +0,0 @@
-require 'active_support/i18n'
-require 'i18n/core_ext/string/interpolate'
14 guides/source/active_support_core_extensions.textile
@@ -1277,20 +1277,6 @@ The <tt>inquiry</tt> method converts a string into a +StringInquirer+ object mak
"active".inquiry.inactive? # => false
-h4. Key-based Interpolation
-In Ruby 1.9 the <tt>%</tt> string operator supports key-based interpolation, both formatted and unformatted:
-"Total is %<total>.02f" % {:total => 43.1} # => Total is 43.10
-"I say %{foo}" % {:foo => "wadus"} # => "I say wadus"
-"I say %{woo}" % {:foo => "wadus"} # => KeyError
-Active Support adds that functionality to <tt>%</tt> in previous versions of Ruby.
-NOTE: Defined in +active_support/core_ext/string/interpolation.rb+.
h4. +starts_with?+ and +ends_with?+
Active Support defines 3rd person aliases of +String#start_with?+ and +String#end_with?+:
Something went wrong with that request. Please try again.