Module Cms::Behaviors::FlushCacheOnChange::MacroMethods
In: lib/cms/behaviors/flush_cache_on_change.rb

Methods

Included Modules

InstanceMethods

Public Instance methods

[Source]

    # File lib/cms/behaviors/flush_cache_on_change.rb, line 16
16:         def flush_cache_on_change(options={})
17:           include InstanceMethods
18:           @flush_cache_on_change = true
19:           
20:           after_save :flush_cache
21:           after_destroy :flush_cache
22:         end

[Source]

    # File lib/cms/behaviors/flush_cache_on_change.rb, line 13
13:         def flush_cache_on_change?
14:           !!@flush_cache_on_change
15:         end

[Validate]