Permalink
Browse files

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

  • Loading branch information...
1 parent 82c6597 commit 5f1d6465b47333db730a4bb4ac3d2a083b7c8f3c @jeremy jeremy committed Mar 12, 2009
Showing with 5 additions and 5 deletions.
  1. +5 −5 actionpack/lib/action_view/base.rb
@@ -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)

1 comment on commit 5f1d646

Member

Thanks! :)

Please sign in to comment.