Skip to content
Browse files

Merge pull request #6522 from lest/patch-1

ActiveSupport require and dependencies
  • Loading branch information...
2 parents f5e26bc + d64b254 commit 68f23bea6b3eec48f26e87ab9cdf3ff361820831 @josevalim josevalim committed May 28, 2012
View
2 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
View
2 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
View
2 activesupport/lib/active_support/multibyte/chars.rb
@@ -76,7 +76,7 @@ def self.consumes?(string)
#
# 'Café périferôl'.mb_chars.split(/é/).map { |part| part.upcase.to_s } # => ["CAF", " P", "RIFERÔL"]
def split(*args)
- @wrapped_string.split(*args).map { |i| i.mb_chars }
+ @wrapped_string.split(*args).map { |i| self.class.new(i) }
end
# Works like like <tt>String#slice!</tt>, but returns an instance of Chars, or nil if the string was not

0 comments on commit 68f23be

Please sign in to comment.
Something went wrong with that request. Please try again.