app/helpers/cmsedit_helper.rb in drg_cms-0.5.5 vs app/helpers/cmsedit_helper.rb in drg_cms-0.5.6
- old
+ new
@@ -418,13 +418,12 @@
end
else
eval( "#{v['eval']} '#{document[ v['name'] ]}'")
end
end
- else
- dc_format_value(document[ v['name'] ], v['format'])
+ else
+ document.respond_to?(v['name']) ? dc_format_value(document.send( v['name'] ), v['format']) : "!!! #{v['name']}"
end
-# td << ">#{value}</td>"
html << td << ">#{value}</td>"
end
end
html.html_safe
end