lib/action_view/renderer/renderer.rb in actionview-4.2.11.3 vs lib/action_view/renderer/renderer.rb in actionview-5.0.0.beta1
- old
+ new
@@ -13,16 +13,12 @@
def initialize(lookup_context)
@lookup_context = lookup_context
end
- # Main render entry point shared by AV and AC.
+ # Main render entry point shared by Action View and Action Controller.
def render(context, options)
- if options.respond_to?(:permitted?) && !options.permitted?
- raise ArgumentError, "render parameters are not permitted"
- end
-
if options.key?(:partial)
render_partial(context, options)
else
render_template(context, options)
end
@@ -39,10 +35,10 @@
else
StreamingTemplateRenderer.new(@lookup_context).render(context, options)
end
end
- # Direct accessor to template rendering.
+ # Direct access to template rendering.
def render_template(context, options) #:nodoc:
TemplateRenderer.new(@lookup_context).render(context, options)
end
# Direct access to partial rendering.