rails/rails — pull request #7509 by tchandy (2012-09-03 03:38:35+00:00)
Title: Remove rescue that is oculting exceptions on integer columns

Hi Folks,

I found this weird behavior when I was programming during my day job. This is the scenario:

```` ruby
class User
has_many :tasks
end
````

```` ruby
class Task
belongs_to :user
end
````

so I was building a part of the application, and I made the following mistake, passing a object to the integer field:

```` ruby
t = Task.new
t.user_id = user
````

whenever this code runs, the user_id always became 1, not raising a error or anything. So I took a look in the rails source, and found that this behavior is fixed in rails master, but not in the 3.2 tree.

I think this could be considered a bug, so I did this patch. What you guys think?