diff options
author | Xavier Noria <fxn@hashref.com> | 2009-11-09 21:27:58 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-11-09 22:16:51 +0100 |
commit | 004db18cb0f690486336f0fa141ad383c79f9558 (patch) | |
tree | bb5dc03ecc033863b53d635a99e78f11c41c1475 /activesupport/lib/active_support/core_ext/string | |
parent | f8e713f488bba264ba73251b56ad56385b8ed824 (diff) | |
download | rails-004db18cb0f690486336f0fa141ad383c79f9558.tar.gz rails-004db18cb0f690486336f0fa141ad383c79f9558.tar.bz2 rails-004db18cb0f690486336f0fa141ad383c79f9558.zip |
String#bytesize is not needed for Ruby >= 1.8.7
Diffstat (limited to 'activesupport/lib/active_support/core_ext/string')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/bytesize.rb | 5 | ||||
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/interpolation.rb | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/bytesize.rb b/activesupport/lib/active_support/core_ext/string/bytesize.rb deleted file mode 100644 index ed051b921e..0000000000 --- a/activesupport/lib/active_support/core_ext/string/bytesize.rb +++ /dev/null @@ -1,5 +0,0 @@ -unless '1.9'.respond_to?(:bytesize) - class String - alias :bytesize :size - end -end diff --git a/activesupport/lib/active_support/core_ext/string/interpolation.rb b/activesupport/lib/active_support/core_ext/string/interpolation.rb index d9159b690a..41a061c1a4 100644 --- a/activesupport/lib/active_support/core_ext/string/interpolation.rb +++ b/activesupport/lib/active_support/core_ext/string/interpolation.rb @@ -6,7 +6,6 @@ =end if RUBY_VERSION < '1.9' - require 'active_support/core_ext/string/bytesize' # KeyError is raised by String#% when the string contains a named placeholder # that is not contained in the given arguments hash. Ruby 1.9 includes and |