Sha256: a7666e80ee4ae1ed451a70d60231f562efa7566d788c931d0df3be47aea5b953

Contents?: true

Size: 497 Bytes

Versions: 26

Compression:

Stored size: 497 Bytes

Contents

module ExpireTagCloud
  def expire_tag_cloud(bookmark)
    I18n.available_locales.each do |locale|
      Role.all_cache.each do |role|
        expire_fragment(:controller => :tags, :action => :index, :page => 'user_tag_cloud', :user_id => bookmark.user.username, :locale => locale, :role => role.name, :user_id => nil)
        expire_fragment(:controller => :tags, :action => :index, :page => 'public_tag_cloud', :locale => locale, :role => role.name, :user_id => nil)
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
enju_bookmark-0.1.2.pre20 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre19 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre18 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre17 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre16 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre15 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre14 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre13 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre12 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre11 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre10 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre9 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre8 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre7 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre6 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre5 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre4 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre3 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre2 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.2.pre lib/enju_bookmark/expire_tag_cloud.rb