From 44c23ddc5a9d5a5578e75bfd717bbf9ceff0c877 Mon Sep 17 00:00:00 2001 From: ilya_scherbinin Date: Tue, 10 Dec 2013 14:27:41 +0400 Subject: [PATCH] fix typo --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e9999f7..c35c268 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -584,7 +584,7 @@ module ApplicationHelper attachments += obj.attachments if obj.respond_to?(:attachments) if attachments.present? text.gsub!(/src="([^\/"]+\.(bmp|gif|jpg|jpe|jpeg|png))"(\s+alt="([^"]*)")?/i) do |m| - filename, ext, alt, alttext = $1.downcase, $2, $3, $4 + filename, text, alt, alttext = $1.downcase, $2, $3, $4 # search for the picture in attachments if found = Attachment.latest_attach(attachments, filename) image_url = download_named_attachment_path(found, found.filename, :only_path => only_path) -- 1.7.11.1