summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-27 10:36:18 +0100
committerPeter Kozak <spag@golwen.net>2013-03-27 10:36:18 +0100
commita51e98d9487ade1079c962739ac8fe2b3aa11312 (patch)
treeadc2d346c2bc1144d56518abea0fe7d421644969
parent73a629589e6d4e20b2fb8dbddaa842908f5588d7 (diff)
destinationable_type can be a non model string
-rw-r--r--app/views/call_forwards/_index_core.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/call_forwards/_index_core.html.haml b/app/views/call_forwards/_index_core.html.haml
index 3c57405..ab8873b 100644
--- a/app/views/call_forwards/_index_core.html.haml
+++ b/app/views/call_forwards/_index_core.html.haml
@@ -22,7 +22,7 @@
- if call_forward.destinationable_type
%br
= call_forward.destinationable_type
- - if call_forward.destinationable_id
+ - if Module.constants.include?(call_forward.destinationable_type.to_sym)
= ": #{call_forward.destinationable}"
%td= call_forward.source
=render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => call_forward.call_forwardable, :child => call_forward}