diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-11-09 18:40:39 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-11-09 18:40:39 -0200 |
commit | 2a8739dc6d445df14014e94f7ba3f59c9492f5be (patch) | |
tree | df8aed0c703519a662b92d363774e4928d8d4d80 /activerecord | |
parent | 452d74600624b2d485a0f3ab4409bd8706b3671d (diff) | |
download | rails-2a8739dc6d445df14014e94f7ba3f59c9492f5be.tar.gz rails-2a8739dc6d445df14014e94f7ba3f59c9492f5be.tar.bz2 rails-2a8739dc6d445df14014e94f7ba3f59c9492f5be.zip |
Change array check for better aesthetics / reading the code
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb b/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb index 496f33376a..c1f978a081 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb @@ -126,7 +126,7 @@ module ActiveRecord else super(value, column) end when IPAddr - if ['inet','cidr'].include? column.sql_type + if %w(inet cidr).include? column.sql_type PostgreSQLColumn.cidr_to_string(value) else super(value, column) |