Flowdock
method

retrieve_variable

Importance_0
v3.2.3 - Show latest stable - 0 notes - Class: PartialRenderer
retrieve_variable(path) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_view/renderer/partial_renderer.rb, line 409
    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
Register or log in to add new notes.