method
method_missing
v5.2.3 -
Show latest stable
- Class:
ActionDispatch::Routing::RoutesProxy
method_missing(method, *args)private
No documentation available.
# File actionpack/lib/action_dispatch/routing/routes_proxy.rb, line 30
def method_missing(method, *args)
if @helpers.respond_to?(method)
self.class.class_eval def #{method}(*args) options = args.extract_options! options = url_options.merge((options || {}).symbolize_keys) if @script_namer options[:script_name] = merge_script_names( options[:script_name], @script_namer.call(options) ) end args << options @helpers.#{method}(*args) end, __FILE__, __LINE__ + 1
public_send(method, *args)
else
super
end
end