Module: Shellac::Actions

Defined in:
lib/shellac/actions.rb

Instance Method Summary collapse

Instance Method Details

#purge(regex, recursive = false) ⇒ Object



4
5
6
7
# File 'lib/shellac/actions.rb', line 4

def purge regex, recursive=false
  return unless ActionController::Base.perform_caching
  Shellac::Cache.instance.purge regex, recursive
end