aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-10-14 10:44:39 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-10-14 10:44:39 -0700
commitae61c03891e2190620fb15b8f4c833ebf6993dc1 (patch)
tree2e92296c7c603b18e23485f7d9d191376a8c4190 /activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb
parent4e8cf43ff9e642ba5ef0dd0f54e5eb2409e160ca (diff)
parent6f400dabf79faedec258963a6b37b7614f5d4902 (diff)
downloadrails-ae61c03891e2190620fb15b8f4c833ebf6993dc1.tar.gz
rails-ae61c03891e2190620fb15b8f4c833ebf6993dc1.tar.bz2
rails-ae61c03891e2190620fb15b8f4c833ebf6993dc1.zip
Merge pull request #7942 from IPGlider/master
Fix typo in inet and cidr saving
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb')
-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 37d43d891d..9d3fa18e3a 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb
@@ -90,7 +90,7 @@ module ActiveRecord
else super(value, column)
end
when IPAddr
- return super(value, column) unless ['inet','cidr'].includes? column.sql_type
+ return super(value, column) unless ['inet','cidr'].include? column.sql_type
PostgreSQLColumn.cidr_to_string(value)
else
super(value, column)