method
method_missing
v3.0.0 -
Show latest stable
- Class:
ActionView::Helpers::JavaScriptCollectionProxy
method_missing(method, *arguments, &block)private
No documentation available.
# File actionpack/lib/action_view/helpers/prototype_helper.rb, line 801
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 => %w(value index)}, &block)
else
super
end
end