lib/typus/controller/format.rb in typus-3.0.10 vs lib/typus/controller/format.rb in typus-3.0.11.rc1
- old
+ new
@@ -36,10 +36,10 @@
case value
when :transversal
a, b = key.split(".")
record.send(a).send(b)
when :belongs_to
- record.send(key).to_label
+ record.send(key).try(:to_label)
else
record.send(key)
end
end
end