Sha256: fa0e60369479f6cdd343d05e11f939fd6a034882488d0d739b8e5c29af5cdb91
Contents?: true
Size: 576 Bytes
Versions: 28
Compression:
Stored size: 576 Bytes
Contents
module Tags::SocialFeedTags include TrustyCms::Taggable desc %{Instagram posts feed *Usage:* <pre><code><r:instagram_posts tag="culturaltrust">/code></pre>} tag "instagram_posts" do |tag| posts = Rails.cache.fetch("instagram_posts/#{tag.attr['tag']}", expires_in: 5.minutes) do InstagramFeedService.new.get_feed_for_tag(tag.attr['tag']) end request.env["action_controller.instance"].render_to_string :partial => "social/instagram_posts", :locals => {:posts => posts} end end
Version data entries
28 entries across 28 versions & 1 rubygems