提交 7e6c310b 编写于 作者: J Jeremy Kemper

Merge branch 'master' into bodyparts

Conflicts:
	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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册