rails/rails — pull request #8291 by senny (2012-11-21 21:03:45+00:00)
Title: prevent mass assignment of polymorphic type when using `build`

This prevents mass assignment on the polymorphic type column when using `build`. It makes the API consistant, which filtered the foreign key already.

Fixes #8265