rails/rails — pull request #6357 by takai (2012-05-16 22:09:18+00:00)
Title: Improve logging of ActiveModel::MassAssignmentSecurity::Sanitizer

Currently, it's hard to find where the mass-assignment error is because of poor logging.
```
WARNING: Can't mass-assign protected attributes: title, taken_on, url
```

so, this patch improves logging such as:
```
WARNING: Can't mass-assign protected attributes for Photo: title, taken_on, url
test/unit/photos_test.rb:5:in `new'
test/unit/photos_test.rb:5:in `block in '
```