From 6afc900191c8edc6f41966827e1cd03ced3f1b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Wed, 4 May 2011 11:26:02 +0200 Subject: Move prefixes to view paths as they are now a lookup context dependency. --- actionpack/lib/abstract_controller/rendering.rb | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'actionpack/lib/abstract_controller/rendering.rb') diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb index 8789168ca7..a5f983a55b 100644 --- a/actionpack/lib/abstract_controller/rendering.rb +++ b/actionpack/lib/abstract_controller/rendering.rb @@ -62,20 +62,6 @@ module AbstractController end end end - - def parent_prefixes - @parent_prefixes ||= begin - parent_controller = superclass - prefixes = [] - - until parent_controller.abstract? - prefixes << parent_controller.controller_path - parent_controller = parent_controller.superclass - end - - prefixes - end - end end attr_writer :view_context_class @@ -135,13 +121,6 @@ module AbstractController view_renderer.render(view_context, options) end - # The prefixes used in render "foo" shortcuts. - def _prefixes - @_prefixes ||= begin - parent_prefixes = self.class.parent_prefixes - parent_prefixes.dup.unshift(controller_path) - end - end private -- cgit v1.2.3