Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change array check for better aesthetics / reading the code

  • Loading branch information...
commit 2a8739dc6d445df14014e94f7ba3f59c9492f5be 1 parent 452d746
@carlosantoniodasilva carlosantoniodasilva authored
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.