aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-11-09 18:40:39 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-11-09 18:40:39 -0200
commit2a8739dc6d445df14014e94f7ba3f59c9492f5be (patch)
treedf8aed0c703519a662b92d363774e4928d8d4d80 /activerecord/lib/active_record
parent452d74600624b2d485a0f3ab4409bd8706b3671d (diff)
downloadrails-2a8739dc6d445df14014e94f7ba3f59c9492f5be.tar.gz
rails-2a8739dc6d445df14014e94f7ba3f59c9492f5be.tar.bz2
rails-2a8739dc6d445df14014e94f7ba3f59c9492f5be.zip
Change array check for better aesthetics / reading the code
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb2
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)