diff options
author | Carl Lerche <carllerche@mac.com> | 2010-03-16 14:55:42 -0700 |
---|---|---|
committer | Carlhuda <carlhuda@engineyard.com> | 2010-03-16 15:47:49 -0700 |
commit | 23b6def0eb76ac0719e420fce91ba862f880a37b (patch) | |
tree | 53ecc35cf7737fd3c3382ce54f07630d1021054d /actionpack/lib/action_view/test_case.rb | |
parent | 3abf5ad7f8b23d955225ba96e82fd5565dd2571d (diff) | |
download | rails-23b6def0eb76ac0719e420fce91ba862f880a37b.tar.gz rails-23b6def0eb76ac0719e420fce91ba862f880a37b.tar.bz2 rails-23b6def0eb76ac0719e420fce91ba862f880a37b.zip |
Do not always include the named URL helpers into AC::Base and AV::Base.
Diffstat (limited to 'actionpack/lib/action_view/test_case.rb')
-rw-r--r-- | actionpack/lib/action_view/test_case.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/test_case.rb b/actionpack/lib/action_view/test_case.rb index 1578ac9479..7e609eb640 100644 --- a/actionpack/lib/action_view/test_case.rb +++ b/actionpack/lib/action_view/test_case.rb @@ -124,7 +124,8 @@ module ActionView def _view view = ActionView::Base.new(ActionController::Base.view_paths, _assigns, @controller) - view.class.send :include, _helpers + view.singleton_class.send :include, _helpers + view.singleton_class.send :include, @controller._router.url_helpers view.output_buffer = self.output_buffer view end |