method
add_variable_assignment!

Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActionView::Helpers::JavaScriptCollectionProxy
add_variable_assignment!(variable)
private
Hide source
# File actionpack/lib/action_view/helpers/prototype_helper.rb, line 829 def add_variable_assignment!(variable) function_chain.push("var #{variable} = #{function_chain.pop}") end