Use existing image_html method

This commit is contained in:
James A. Anderson & Jalil Mohammed 2013-06-29 11:17:25 -07:00 committed by James Anderson
parent 9c617d051e
commit 635ec38222
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ module Oneboxer
matcher /^https?:\/\/.*\.(jpg|png|gif|jpeg)$/ matcher /^https?:\/\/.*\.(jpg|png|gif|jpeg)$/
def onebox def onebox
"<a href='#{@url}' target='_blank'><img src='#{@url}'></a>" Oneboxer::BaseOnebox.image_html(@url, nil, @url)
end end
end end