mirror of
https://github.com/github/rails.git
synced 2026-02-05 03:35:14 -05:00
Feature check :force_encoding instead of RUBY_VERSION
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module ActiveSupport #:nodoc:
|
||||
module CoreExtensions #:nodoc:
|
||||
module String #:nodoc:
|
||||
if RUBY_VERSION < '1.9'
|
||||
unless '1.9'.respond_to?(:force_encoding)
|
||||
# Makes it easier to access parts of a string, such as specific characters and substrings.
|
||||
module Access
|
||||
# Returns the character at the +position+ treating the string as an array (where 0 is the first character).
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module ActiveSupport #:nodoc:
|
||||
module CoreExtensions #:nodoc:
|
||||
module String #:nodoc:
|
||||
if RUBY_VERSION < '1.9'
|
||||
unless '1.9'.respond_to?(:force_encoding)
|
||||
# Define methods for handling unicode data.
|
||||
module Unicode
|
||||
# +chars+ is a Unicode safe proxy for string methods. It creates and returns an instance of the
|
||||
|
||||
Reference in New Issue
Block a user