From: Michal Fojtik <[email protected]>

---
 server/views/images/index.xml.haml |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/server/views/images/index.xml.haml 
b/server/views/images/index.xml.haml
index 356668b..732769f 100644
--- a/server/views/images/index.xml.haml
+++ b/server/views/images/index.xml.haml
@@ -4,5 +4,9 @@
     %image{:href => image_url(image.id), :id => image.id}
       - image.attributes.select{ |attr| attr!=:id }.each do |attribute|
         - haml_tag("#{attribute}".tr('-', '_'), :<) do
-          - haml_concat image.send(attribute)
+          - if [:name, :description].include?(attribute)
+            =cdata do
+              - haml_concat image.send(attribute)
+          - else
+            - haml_concat image.send(attribute)
 
-- 
1.7.3.2

Reply via email to