Mass-assignment notification with whiltelist_attributes set to true

I found it useful for my development to make 2 changes

1. Update log message to be more explicit such as "WARNING: Can't mass-assign *in SomeModel* protected attributes: blah" 2. Thrown an exception - this would only make sense if whitelist_attributes is set to true

Any opinion if this would be a good suggestion for the rails feature request, specifically #2?

#2 already exists:

config.active_record.mass_assignment_sanitizer = :strict

will turn on exception raising. A better error message wouldn't hurt though

Fred