提交 2a8739dc 编写于 作者: C Carlos Antonio da Silva

Change array check for better aesthetics / reading the code

上级 452d7460
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册