提交 348de3a0 编写于 作者: E Eugene Gilburg

marking private methods which dont work if called on their own anyways

上级 38117adf
......@@ -312,6 +312,8 @@ def render(context, options, block)
end
end
private
def render_collection
return nil if @collection.blank?
......
......@@ -14,8 +14,10 @@ def render(context, options)
render_template(template, options[:layout], options[:locals])
end
private
# Determine the template to be rendered using the given options.
def determine_template(options) #:nodoc:
def determine_template(options)
keys = options.fetch(:locals, {}).keys
if options.key?(:body)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册