method
method_missing
v4.1.8 -
Show latest stable
- Class:
ActionDispatch::Routing::RoutesProxy
method_missing(method, *args)public
No documentation available.
# File actionpack/lib/action_dispatch/routing/routes_proxy.rb, line 25
def method_missing(method, *args)
if routes.url_helpers.respond_to?(method)
self.class.class_eval def #{method}(*args) options = args.extract_options! args << url_options.merge((options || {}).symbolize_keys) routes.url_helpers.#{method}(*args) end, __FILE__, __LINE__ + 1
send(method, *args)
else
super
end
end