aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorSergey Nartimov <just.lest@gmail.com>2012-05-16 22:39:56 +0300
committerSergey Nartimov <just.lest@gmail.com>2012-05-16 22:39:56 +0300
commitf88f699a7b3180e52c2961b9b642f340b2bdae84 (patch)
tree712ce9a4eae6467500ecc47c5d2b2b18e6db4324 /activesupport/lib/active_support
parent2a67a8cc59a9d1443756d8af2437d52252b9094e (diff)
downloadrails-f88f699a7b3180e52c2961b9b642f340b2bdae84.tar.gz
rails-f88f699a7b3180e52c2961b9b642f340b2bdae84.tar.bz2
rails-f88f699a7b3180e52c2961b9b642f340b2bdae84.zip
remove unnecessary require
- access & filters don't use multibyte ext - transliterate requires only AS::Multibyte but not multibyte ext
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/core_ext/string/access.rb2
-rw-r--r--activesupport/lib/active_support/core_ext/string/filters.rb2
-rw-r--r--activesupport/lib/active_support/inflector/transliterate.rb2
3 files changed, 1 insertions, 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