Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
halida committed Dec 4, 2012
1 parent ffa47e8 commit f8e4fac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Expand Up @@ -4,10 +4,11 @@ class EmailTrackersController < ::ApplicationController
def show
v = Visit.find_by_uuid params[:uuid]
v.visit_by request
send_file(
File.expand_path("../../../assets/images/t.gif", __FILE__),
send_data(
File.read(File.expand_path("../../../assets/images/t.gif", __FILE__)),
filename: "t.gif",
type: "image/pdf")
disposition: 'inline',
type: "image/gif")
end

end
Expand Down
2 changes: 1 addition & 1 deletion lib/simple_email_tracker/version.rb
@@ -1,3 +1,3 @@
module SimpleEmailTracker
VERSION = "0.0.2"
VERSION = "0.0.3"
end
2 changes: 1 addition & 1 deletion lib/simple_email_tracker/view_helper.rb
Expand Up @@ -2,7 +2,7 @@ module SimpleEmailTracker
module ViewHelper
def set_email_tracker *args
et = SimpleEmailTracker::Visit.get_by_key args
"#{root_url}email_trackers/#{et.uuid}/t.gif"
image_tag "#{root_url}email_trackers/#{et.uuid}/t.gif"
end
end
end

0 comments on commit f8e4fac

Please sign in to comment.