Upgrade to Rails 2.2.0
As a side benefit, fix an (non-user-visible) bug in display_s5(). Also fixed a bug where removing orphaned pages did not expire cached summary pages.
This commit is contained in:
parent
39348c65c2
commit
7600aef48b
827 changed files with 123652 additions and 11027 deletions
|
@ -25,9 +25,7 @@ module ActionView
|
|||
end
|
||||
end
|
||||
|
||||
ActionView::Base.helper_modules.each do |helper_module|
|
||||
include helper_module
|
||||
end
|
||||
include ActionView::Helpers
|
||||
include ActionController::PolymorphicRoutes
|
||||
include ActionController::RecordIdentifier
|
||||
|
||||
|
@ -37,6 +35,8 @@ module ActionView
|
|||
if helper_class && !self.class.ancestors.include?(helper_class)
|
||||
self.class.send(:include, helper_class)
|
||||
end
|
||||
|
||||
self.output_buffer = ''
|
||||
end
|
||||
|
||||
class TestController < ActionController::Base
|
||||
|
@ -48,10 +48,13 @@ module ActionView
|
|||
end
|
||||
end
|
||||
|
||||
protected
|
||||
attr_accessor :output_buffer
|
||||
|
||||
private
|
||||
def method_missing(selector, *args)
|
||||
controller = TestController.new
|
||||
return controller.send!(selector, *args) if ActionController::Routing::Routes.named_routes.helpers.include?(selector)
|
||||
return controller.__send__(selector, *args) if ActionController::Routing::Routes.named_routes.helpers.include?(selector)
|
||||
super
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue