method
retrieve_variable
v3.1.0 -
Show latest stable
- Class:
ActionView::PartialRenderer
retrieve_variable(path)private
No documentation available.
# File actionpack/lib/action_view/renderer/partial_renderer.rb, line 382
def retrieve_variable(path)
variable = @options[:as].try(:to_sym) || path[%_?(\w+)(\.\w+)*$', 1].to_sym
variable_counter = :"#{variable}_counter" if @collection
[variable, variable_counter]
end