From f88f699a7b3180e52c2961b9b642f340b2bdae84 Mon Sep 17 00:00:00 2001 From: Sergey Nartimov Date: Wed, 16 May 2012 22:39:56 +0300 Subject: remove unnecessary require - access & filters don't use multibyte ext - transliterate requires only AS::Multibyte but not multibyte ext --- activesupport/lib/active_support/core_ext/string/access.rb | 2 -- activesupport/lib/active_support/core_ext/string/filters.rb | 2 -- activesupport/lib/active_support/inflector/transliterate.rb | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/activesupport/lib/active_support/core_ext/string/access.rb b/activesupport/lib/active_support/core_ext/string/access.rb index 5c32a2453d..8fa8157d65 100644 --- a/activesupport/lib/active_support/core_ext/string/access.rb +++ b/activesupport/lib/active_support/core_ext/string/access.rb @@ -1,5 +1,3 @@ -require 'active_support/multibyte' - class String # If you pass a single Fixnum, returns a substring of one character at that # position. The first character of the string is at position 0, the next at diff --git a/activesupport/lib/active_support/core_ext/string/filters.rb b/activesupport/lib/active_support/core_ext/string/filters.rb index 2478f42290..c7e4d5651a 100644 --- a/activesupport/lib/active_support/core_ext/string/filters.rb +++ b/activesupport/lib/active_support/core_ext/string/filters.rb @@ -1,5 +1,3 @@ -require 'active_support/core_ext/string/multibyte' - class String # Returns the string, first removing all whitespace on both ends of # the string, and then changing remaining consecutive whitespace diff --git a/activesupport/lib/active_support/inflector/transliterate.rb b/activesupport/lib/active_support/inflector/transliterate.rb index a372b6d1f7..7707b7131e 100644 --- a/activesupport/lib/active_support/inflector/transliterate.rb +++ b/activesupport/lib/active_support/inflector/transliterate.rb @@ -1,5 +1,5 @@ # encoding: utf-8 -require 'active_support/core_ext/string/multibyte' +require 'active_support/multibyte' require 'active_support/i18n' module ActiveSupport -- cgit v1.2.3