Module: OpenGraphHelper
- Defined in:
- app/helpers/open_graph_helper.rb
Instance Method Summary collapse
- #link_to_oembed_image(cache, prefix = 'thumbnail_') ⇒ Object
- #oembed_image_tag(cache, prefix) ⇒ Object
Instance Method Details
#link_to_oembed_image(cache, prefix = 'thumbnail_') ⇒ Object
4 5 6 |
# File 'app/helpers/open_graph_helper.rb', line 4 def (cache, prefix = 'thumbnail_') link_to((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 (cache, prefix) image_tag(cache.data["#{prefix}url"], cache.(prefix)) end |