method
handle_model_call
v7.1.3.2 -
Show latest stable
- Class:
ActionDispatch::Routing::PolymorphicRoutes::HelperMethodBuilder
handle_model_call(target, record)public
No documentation available.
# File actionpack/lib/action_dispatch/routing/polymorphic_routes.rb, line 277
def handle_model_call(target, record)
if mapping = polymorphic_mapping(target, record)
mapping.call(target, [record], suffix == "path")
else
method, args = handle_model(record)
target.public_send(method, *args)
end
end