Skip to content

Commit 68f23be

Browse files
committed
Merge pull request rails#6522 from lest/patch-1
ActiveSupport require and dependencies
2 parents f5e26bc + d64b254 commit 68f23be

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

activesupport/lib/active_support/core_ext/string/access.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require 'active_support/multibyte'
2-
31
class String
42
# If you pass a single Fixnum, returns a substring of one character at that
53
# position. The first character of the string is at position 0, the next at

activesupport/lib/active_support/core_ext/string/filters.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require 'active_support/core_ext/string/multibyte'
2-
31
class String
42
# Returns the string, first removing all whitespace on both ends of
53
# the string, and then changing remaining consecutive whitespace

activesupport/lib/active_support/multibyte/chars.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def self.consumes?(string)
7676
#
7777
# 'Café périferôl'.mb_chars.split(/é/).map { |part| part.upcase.to_s } # => ["CAF", " P", "RIFERÔL"]
7878
def split(*args)
79-
@wrapped_string.split(*args).map { |i| i.mb_chars }
79+
@wrapped_string.split(*args).map { |i| self.class.new(i) }
8080
end
8181

8282
# Works like like <tt>String#slice!</tt>, but returns an instance of Chars, or nil if the string was not

0 commit comments

Comments
 (0)