Deprecate the @controller instance variable

This commit is contained in:
wycats
2010-08-03 14:23:46 -07:00
parent af8e085190
commit 109dc3c39c

View File

@@ -227,6 +227,7 @@ module ActionView #:nodoc:
@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