class ActionDispatch::Routing::PolymorphicRoutes::HelperMethodBuilder
def handle_model_call(target, record)
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