From a51e98d9487ade1079c962739ac8fe2b3aa11312 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Wed, 27 Mar 2013 10:36:18 +0100 Subject: destinationable_type can be a non model string --- app/views/call_forwards/_index_core.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views') 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} -- cgit v1.2.3