module ActionDispatch::Routing::Mapper::Resources

def param_constraint

def param_constraint
  @scope[:constraints][parent_resource.param]
end