diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb b/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb index 496f33376ae6ebbdce3413aca6e9daef8ccdd017..c1f978a081c8405a6bca9689880f9de16e9da2d4 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 @@ def type_cast(value, column, array_member = false) 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)