Flowdock
method

setup

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: PartialRenderer
setup(context, options, as, block) private

Sets up instance variables needed for rendering a partial. This method finds the options and details and extracts them. The method also contains logic that handles the type of object passed in as the partial.

If +options[:partial]+ is a string, then the @path instance variable is set to that string. Otherwise, the +options[:partial]+ object must respond to to_partial_path in order to setup the path.

Show source
Register or log in to add new notes.