Change naming to match 2.2 so life is easier on plugin developers

This commit is contained in:
Jeremy Kemper 2009-03-12 13:32:52 -07:00
parent 82c6597dc2
commit 5f1d6465b4

@ -225,8 +225,8 @@ def initialize(view_paths = [], assigns_for_first_render = {}, controller = nil)
@helpers = ProxyModule.new(self)
self.view_paths = view_paths
@_first_template = nil
@_current_template = nil
@_first_render = nil
@_current_render = nil
end
attr_reader :view_paths
@ -288,12 +288,12 @@ def template_format
# Access the current template being rendered.
# Returns a ActionView::Template object.
def template
@_current_template
@_current_render
end
def template=(template) #:nodoc:
@_first_template ||= template
@_current_template = template
@_first_render ||= template
@_current_render = template
end
def with_template(current_template)