rails/rails — pull request #4706 by railsaholic (2012-01-26 18:08:49+00:00)
Title: Dependent restrict should add error 3 2 stable

has_many/has_one, :dependent => :restrict, now adds an error with a Deprecation Warning, instead of raising DeleteRestrictionError exception. [3-2-stable]

Tests included and passing.

fixes #2502