Skip to content

Instantly share code, notes, and snippets.

@jasonmarkperez
Created May 2, 2013 18:25
Show Gist options
  • Save jasonmarkperez/5504231 to your computer and use it in GitHub Desktop.
Save jasonmarkperez/5504231 to your computer and use it in GitHub Desktop.
def email_image_tag(source, options = {})
opts = options.symbolize_keys
style = "#{opts[:style]}display: block;border-style: none;"
image_tag(source, opts.merge({:style => style}))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment