Module | Cms::Behaviors::FlushCacheOnChange::MacroMethods |
In: |
lib/cms/behaviors/flush_cache_on_change.rb
|
# 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