Module: OpenGraphHelper

Defined in:
app/helpers/open_graph_helper.rb

Instance Method Summary collapse

Instance Method Details


4
5
6
# File 'app/helpers/open_graph_helper.rb', line 4

def link_to_oembed_image(cache, prefix = 'thumbnail_')
  link_to(oembed_image_tag(cache, prefix), cache.url, :target => '_blank')
end

#oembed_image_tag(cache, prefix) ⇒ Object


8
9
10
# File 'app/helpers/open_graph_helper.rb', line 8

def oembed_image_tag(cache, prefix)
  image_tag(cache.data["#{prefix}url"], cache.options_hash(prefix))
end