def asset_icon(asset, image = (image_unspecified = true; nil))
      image_url = if !image_unspecified
                    image.source.url if image.present?
                  elsif (asset.class.has_images? || asset.class.has_image?) && asset.first_image_source_url.present?
                    asset.first_image_source_url
                  end

      if image_url
        image_tag image_url, class: 'ui avatar image'
      else
        content_tag :i, '', class: [asset.class.icon_class || 'folder', 'large', 'icon']
      end
    end
def asset_icon(asset, image = (image_unspecified = true; nil))
      image_url = if !image_unspecified
                    image.source.url if image.present?
                  elsif (asset.class.has_images? || asset.class.has_image?) && asset.first_image_source_url.present?
                    asset.first_image_source_url
                  end

      if image_url
        image_tag image_url, class: 'ui avatar image'
      else
        content_tag :i, '', class: [asset.class.icon_class || 'folder', 'large', 'icon']
      end
    end
I know, right?