Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
redirect_to warning on polymorphic routes #143
Arrays of Models, definitely. It looks like trying to build an array with "invalid values" will throw an exception because it would be an unrecognized route, even with default routes:
polymorphic_url calls (proxy || self).send(named_route, *args)
So I think it's safe to say that it is safe if the first arg is an Array, even with user-supplied input.