Permalink
Browse files

Change array check for better aesthetics / reading the code

  • Loading branch information...
1 parent 452d746 commit 2a8739dc6d445df14014e94f7ba3f59c9492f5be @carlosantoniodasilva carlosantoniodasilva committed Nov 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)

0 comments on commit 2a8739d

Please sign in to comment.