diff options
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) |