Permalink
Browse files

Deprecate the @controller instance variable

  • Loading branch information...
1 parent af8e085 commit 109dc3c39cd7b1294320c8a9cc62f98ed0c85d91 @wycats wycats committed Aug 3, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_view/base.rb
@@ -227,6 +227,7 @@ def initialize(lookup_context = nil, assigns_for_first_render = {}, controller =
@lookup_context = lookup_context.is_a?(ActionView::LookupContext) ?
lookup_context : ActionView::LookupContext.new(lookup_context)
@lookup_context.formats = formats if formats
+ @controller = ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy.new(self, :controller)
end
def controller_path

0 comments on commit 109dc3c

Please sign in to comment.