From 2a8739dc6d445df14014e94f7ba3f59c9492f5be Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sat, 9 Nov 2013 18:40:39 -0200 Subject: Change array check for better aesthetics / reading the code --- .../lib/active_record/connection_adapters/postgresql/quoting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') 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) -- cgit v1.2.3