Change "_filename" to "_identifier" for carrierwave
This commit is contained in:
1 parent
5518ae362d
commit
9fcf8280fa
8 files changed
+15
-15
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user