Sha256: ebcab66867f58dd6ae466a52267ef93a67233531bceead7243efc667c466e79a

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

module Yashare
  module Helpers
    extend ActiveSupport::Concern

    def yashare(opts={})
      script = content_tag(:script, nil,
        charset: 'utf-8',
        type:    'text/javascript',
        src:     '//yastatic.net/share/share.js'
      )

      div = content_tag(:div)

      html = [script, Yashare::Widget.new(self, opts)].join("\n")
      self.raw(html)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yashare-0.1 lib/yashare/helpers.rb