Sha256: 64d76d88f33c03c4d5edd25f05cecd3c1cdc2e554f79ce3948e22a6ce6622c04

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

module Spread
  def spread(action)
    html = image_tag "spread/email.png", :alt => "Share with a friend", :size => "16x16", :valign => "middle"
    html += link_to "Share with a friend", :action => action, :url => request.url
    content_tag :div, html
  end
end

ActionView::Base.send :include, Spread

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
pelargir-spread-0.5 lib/spread.rb
spread-0.5 lib/spread.rb