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.1 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.0.pre lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.1.0 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.0.22 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.0.21 lib/enju_bookmark/expire_tag_cloud.rb
enju_bookmark-0.0.20 lib/enju_bookmark/expire_tag_cloud.rb