Module: BackgroundCache::Controller

Defined in:
lib/background_cache/controller.rb

Defined Under Namespace

Classes: BackgroundCacheFilter

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
# File 'lib/background_cache/controller.rb', line 4

def self.included(base)
  base.alias_method_chain :read_fragment, :background_cache
  base.alias_method_chain :render, :background_cache
  base.around_filter BackgroundCacheFilter.new
end