Sha256: d9b347d93d9846b46fd882e5c89b656a2fe2cf4983625900eb89478e29028c27
Contents?: true
Size: 388 Bytes
Versions: 3
Compression:
Stored size: 388 Bytes
Contents
class Interpret::TranslationSweeper < ActionController::Caching::Sweeper observe Interpret::Translation def after_update(translation) Interpret.backend.reload! if Interpret.backend end private def expire_cache #expire_action :controller => "interpret/translations", :action => :tree session.delete(:tree) Interpret.backend.reload! if Interpret.backend end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
interpret-0.1.3 | app/sweepers/interpret/translation_sweeper.rb |
interpret-0.1.2 | app/sweepers/interpret/translation_sweeper.rb |
interpret-0.1.1 | app/sweepers/interpret/translation_sweeper.rb |