Change "_filename" to "_identifier" for carrierwave

This commit is contained in:
Christophe Vilayphiou committed 2012-01-24 11:57:27 +08:00
1 parent 5518ae362d
commit 9fcf8280fa
8 files changed
+15 -15

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ module ParserLayout
layout.layout_parts.create(:name => tag.attr['name'], :editable => true)
end
c.define_tag 'image' do |tag|
image = layout.design.images.detect{ |i| i.file_filename.eql?(parse_html_image(tag.expand)) }
image = layout.design.images.detect{ |i| i.file_identifier.eql?(parse_html_image(tag.expand)) }
image.update_attributes(:name => tag.attr['name'], :html_id => tag.attr['id'], :html_class => tag.attr['class'])
end
end