Permalink
Browse files

Make old caching tests pass on new base.

  • Loading branch information...
1 parent 67cc021 commit 321168b17bce2e73ab7ba22309491ad5c245dcf8 Yehuda Katz + Carl Lerche committed May 20, 2009
@@ -55,6 +55,10 @@ module Rails2Compatibility
self.consider_all_requests_local = true
end
+ # For old tests
+ def initialize_template_class(*) end
+ def assign_shortcuts(*) end
+
module ClassMethods
def protect_from_forgery() end
def consider_all_requests_local() end
@@ -60,7 +60,6 @@ def self.action(name)
# :api: private
def to_rack
- @_response.body = response_body
@_response.prepare!
@_response.to_a
end
@@ -1,5 +1,10 @@
module ActionController
module UrlFor
+ def process_action(*)
+ initialize_current_url
+ super
+ end
+
def initialize_current_url
@url = UrlRewriter.new(request, params.clone)
end

0 comments on commit 321168b

Please sign in to comment.