diff options
author | Xavier Noria <fxn@hashref.com> | 2016-10-27 09:31:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-27 09:31:47 +0200 |
commit | 1aa9d3903d16e623837bf8ff7deefc865fc24502 (patch) | |
tree | edea51a20f44ad1bdd1d3f72d57ac86cf98b1e61 /activerecord/lib/active_record/connection_adapters/column.rb | |
parent | 56832e791f3ec3e586cf049c6408c7a183fdd3a1 (diff) | |
parent | 48cc754a1070cfc4fefdd49475aea3fc9c1a5e2f (diff) | |
download | rails-1aa9d3903d16e623837bf8ff7deefc865fc24502.tar.gz rails-1aa9d3903d16e623837bf8ff7deefc865fc24502.tar.bz2 rails-1aa9d3903d16e623837bf8ff7deefc865fc24502.zip |
Merge pull request #26899 from kamipo/use_regex_match
Use Regexp#match? rather than Regexp#===
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. |