This project is archived and is in readonly mode.
Refactor protected attribute assignment warnings
-
Trevor Turk
Here's an example monkey patch that raises errors during tests, instead of just logging them.
-
Repository
(from [81c12d1f6359eb5e52b376f1f3552097a144cc8b]) move logging of protected attribute removal into log_protected_attribute_removal method
Signed-off-by: Michael Koziarski michael@koziarski.com [#804 Refactor protected attribute assignment warnings status:committed] http://github.com/rails/rails/co...
-
Trevor Turk
Thanks for committing this, Koz! Just in case anyone tries to use the attached monkey patch, note that the first line should have read:
if RAILS_ENV == 'test'
:)
-
Pratik
- State changed from new to resolved
