lib/shellac/actions.rb in shellac-0.0.2.4 vs lib/shellac/actions.rb in shellac-0.0.3.rc2
- old
+ new
@@ -1,10 +1,10 @@
module Shellac
module Actions
- def purge regex, recursive=false
- return unless ActionController::Base.perform_caching
- Shellac::Cache.instance.purge regex, recursive
+ def purge regex, recursive=false, hosts=nil
+ return unless ::ActionController::Base.perform_caching
+ Cache.instance.purge regex, recursive, hosts
end
end
end
\ No newline at end of file