Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "make asset:link nòt use thumbnail when the asset is not an im…

…age"

This reverts commit 85e253f.
Made obsolete by ea3f93b
  • Loading branch information...
commit dd09602a1ff50a836b9f26300e4bd7c6f1e9471d 1 parent ea3f93b
@gerrit gerrit authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/models/asset_tags.rb
View
2  app/models/asset_tags.rb
@@ -227,7 +227,7 @@ class TagError < StandardError; end
attributes = options.inject('') { |s, (k, v)| s << %{#{k.downcase}="#{v}" } }.strip
attributes = " #{attributes}" unless attributes.empty?
text = tag.double? ? tag.expand : text
- url = asset.image? ? asset.thumbnail(size) : asset.asset.url
+ url = asset.thumbnail(size)
%{<a href="#{url }#{anchor}"#{attributes}>#{text}</a>} rescue nil
end
Please sign in to comment.
Something went wrong with that request. Please try again.