Remove old unneeded code

This commit is contained in:
Santiago Pastorino 2013-10-26 03:01:17 -02:00
parent 1eb09476ef
commit d5308b4d0b

View File

@ -161,8 +161,7 @@ end
if associated_data.respond_to?(:to_ary) if associated_data.respond_to?(:to_ary)
associated_data.map { |elem| association.build_serializer(elem).serializable_hash } associated_data.map { |elem| association.build_serializer(elem).serializable_hash }
else else
result = association.build_serializer(associated_data).serializable_hash association.build_serializer(associated_data).serializable_hash
association.is_a?(Association::HasMany) ? [result] : result
end end
end end