diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-10-14 19:50:06 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-14 19:50:36 -0500 |
commit | 8cbf825425dc8ad3770881ea4e100b9023c69ce2 (patch) | |
tree | 560e40df6aa1e888df3fe88ff4c87e1cb3b27e0e /actionpack/lib/action_controller/caching/pages.rb | |
parent | bf9819f73d74e19052b7b8a7a9885972a27e8876 (diff) | |
download | rails-8cbf825425dc8ad3770881ea4e100b9023c69ce2.tar.gz rails-8cbf825425dc8ad3770881ea4e100b9023c69ce2.tar.bz2 rails-8cbf825425dc8ad3770881ea4e100b9023c69ce2.zip |
Rename Orchestra to Notifications [#3321 state:resolved]
Diffstat (limited to 'actionpack/lib/action_controller/caching/pages.rb')
-rw-r--r-- | actionpack/lib/action_controller/caching/pages.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/caching/pages.rb b/actionpack/lib/action_controller/caching/pages.rb index 4fb154470f..0cf245360a 100644 --- a/actionpack/lib/action_controller/caching/pages.rb +++ b/actionpack/lib/action_controller/caching/pages.rb @@ -64,7 +64,7 @@ module ActionController #:nodoc: return unless perform_caching path = page_cache_path(path) - event = ActiveSupport::Orchestra.instrument(:expire_page, :path => path) do + event = ActiveSupport::Notifications.instrument(:expire_page, :path => path) do File.delete(path) if File.exist?(path) end @@ -78,7 +78,7 @@ module ActionController #:nodoc: return unless perform_caching path = page_cache_path(path) - event = ActiveSupport::Orchestra.instrument(:cache_page, :path => path) do + event = ActiveSupport::Notifications.instrument(:cache_page, :path => path) do FileUtils.makedirs(File.dirname(path)) File.open(path, "wb+") { |f| f.write(content) } end |