diff options
Diffstat (limited to 'actionpack/lib/action_controller/caching.rb')
-rw-r--r-- | actionpack/lib/action_controller/caching.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index 3689c335fc..a072080849 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -238,7 +238,7 @@ module ActionController #:nodoc: if cache = controller.read_fragment(cache_path.path) controller.rendered_action_cache = true set_content_type!(controller, cache_path.extension) - controller.send(:render_for_text, cache) + controller.send!(:render_for_text, cache) false else controller.action_cache_path = cache_path @@ -470,7 +470,7 @@ module ActionController #:nodoc: super if ActionController::Base.allow_concurrency @mutex = Mutex.new - MemoryStore.send(:include, ThreadSafety) + MemoryStore.module_eval { include ThreadSafety } end end end @@ -560,7 +560,7 @@ module ActionController #:nodoc: super(cache_path) if ActionController::Base.allow_concurrency @mutex = Mutex.new - FileStore.send(:include, ThreadSafety) + FileStore.module_eval { include ThreadSafety } end end end @@ -642,13 +642,13 @@ module ActionController #:nodoc: controller_callback_method_name = "#{timing}_#{controller.controller_name.underscore}" action_callback_method_name = "#{controller_callback_method_name}_#{controller.action_name}" - send(controller_callback_method_name) if respond_to?(controller_callback_method_name) - send(action_callback_method_name) if respond_to?(action_callback_method_name) + send!(controller_callback_method_name) if respond_to?(controller_callback_method_name, true) + send!(action_callback_method_name) if respond_to?(action_callback_method_name, true) end def method_missing(method, *arguments) return if @controller.nil? - @controller.send(method, *arguments) + @controller.send!(method, *arguments) end end end |