method
method_missing
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActionView::Helpers::JavaScriptCollectionProxy
method_missing(method, *arguments, &block)
private
Hide source
# File actionpack/lib/action_view/helpers/prototype_helper.rb, line 800 def method_missing(method, *arguments, &block) if ENUMERABLE_METHODS.include?(method) returnable = ENUMERABLE_METHODS_WITH_RETURN.include?(method) variable = arguments.first if returnable enumerate(method, {:variable => (arguments.first if returnable), :return => returnable, :yield_args => %(value index)}, &block) else super end end