class method
self.new
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20Signature
self.new(view_context, options, block)
No documentation comment.
Parameters
-
view_contextreq -
optionsreq -
blockreq
Source
# File actionpack/lib/action_view/render/partials.rb, line 219
def initialize(view_context, options, block)
@view = view_context
@partial_names = PARTIAL_NAMES[@view.controller.class.name]
setup(options, block)
end
Defined in actionpack/lib/action_view/render/partials.rb line 219
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Partials::PartialRenderer