diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-10-26 19:08:03 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-10-26 19:53:19 +0900 |
commit | 48cc754a1070cfc4fefdd49475aea3fc9c1a5e2f (patch) | |
tree | 798673e57b633a27a386a118e7cdd8a3abf2a8dc /activerecord/lib/active_record/connection_adapters/column.rb | |
parent | ec4aaccb1b9fdc60aa6ab5bb417e915165f772fa (diff) | |
download | rails-48cc754a1070cfc4fefdd49475aea3fc9c1a5e2f.tar.gz rails-48cc754a1070cfc4fefdd49475aea3fc9c1a5e2f.tar.bz2 rails-48cc754a1070cfc4fefdd49475aea3fc9c1a5e2f.zip |
Use Regexp#match? rather than Regexp#===
Follow up to 99cf7558000090668b137085bfe6bcc06c4571dc.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/column.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/column.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb index 1808173592..02d546209d 100644 --- a/activerecord/lib/active_record/connection_adapters/column.rb +++ b/activerecord/lib/active_record/connection_adapters/column.rb @@ -29,7 +29,7 @@ module ActiveRecord end def bigint? - /\Abigint\b/ === sql_type + /\Abigint\b/.match?(sql_type) end # Returns the human name of the column name. |