diff options
author | Akira Matsuda <ronnie@dio.jp> | 2015-09-18 17:05:05 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2015-09-18 17:05:05 +0900 |
commit | dcecbb4234e5b0e4751b57ce49c7afbf0775f937 (patch) | |
tree | 77b54737613b5182ba2694f2877e3f9da9b66333 /activesupport/lib/active_support/core_ext | |
parent | da737ba7b9d2e0411043b5fb5c03063abc5341a8 (diff) | |
download | rails-dcecbb4234e5b0e4751b57ce49c7afbf0775f937.tar.gz rails-dcecbb4234e5b0e4751b57ce49c7afbf0775f937.tar.bz2 rails-dcecbb4234e5b0e4751b57ce49c7afbf0775f937.zip |
File encoding is defaulted to utf-8 in Ruby >= 2.1
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r-- | activesupport/lib/active_support/core_ext/object/blank.rb | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/core_ext/uri.rb | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/blank.rb b/activesupport/lib/active_support/core_ext/object/blank.rb index 548c91638c..a294228979 100644 --- a/activesupport/lib/active_support/core_ext/object/blank.rb +++ b/activesupport/lib/active_support/core_ext/object/blank.rb @@ -1,5 +1,3 @@ -# encoding: utf-8 - class Object # An object is blank if it's false, empty, or a whitespace string. # For example, +false+, '', ' ', +nil+, [], and {} are all blank. diff --git a/activesupport/lib/active_support/core_ext/uri.rb b/activesupport/lib/active_support/core_ext/uri.rb index 0b2ff817c3..c6c183edd9 100644 --- a/activesupport/lib/active_support/core_ext/uri.rb +++ b/activesupport/lib/active_support/core_ext/uri.rb @@ -1,5 +1,3 @@ -# encoding: utf-8 - require 'uri' str = "\xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E" # Ni-ho-nn-go in UTF-8, means Japanese. parser = URI::Parser.new |