diff options
author | Miguel Herranz <miguel@ipglider.org> | 2012-10-14 15:50:17 +0200 |
---|---|---|
committer | Miguel Herranz <miguel@ipglider.org> | 2012-10-14 19:40:38 +0200 |
commit | 6f400dabf79faedec258963a6b37b7614f5d4902 (patch) | |
tree | c0d1747cabf52a5ac38f656548520c93a2ac591c /activerecord/lib | |
parent | 8fb841bddefbd2b7ad6b3d7b560111ef0d7fefda (diff) | |
download | rails-6f400dabf79faedec258963a6b37b7614f5d4902.tar.gz rails-6f400dabf79faedec258963a6b37b7614f5d4902.tar.bz2 rails-6f400dabf79faedec258963a6b37b7614f5d4902.zip |
Fix typo in inet and cidr saving
Diffstat (limited to 'activerecord/lib')
-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 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) |