diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2016-01-12 14:09:43 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2016-01-12 14:09:56 -0800 |
commit | 04d61612f9fdc7f80202cd7d68c58900d8f40ab3 (patch) | |
tree | 4e2f9ebb4172f48ee7381d2f7ee0fac877fc4b61 /activerecord/test/cases/validations/i18n_generate_message_validation_test.rb | |
parent | 12f4976200019ebc6b699e512691d9e49a5c6988 (diff) | |
download | rails-04d61612f9fdc7f80202cd7d68c58900d8f40ab3.tar.gz rails-04d61612f9fdc7f80202cd7d68c58900d8f40ab3.tar.bz2 rails-04d61612f9fdc7f80202cd7d68c58900d8f40ab3.zip |
monkey patch `recycle!` on to controllers once
Instead of checking whether the class has recycle! or not, we can just
always add the method to all controller classes when the test harness is
loaded. Technically this means that the controller test harness will
not work with controllers that do not inherit from AC::Metal, but then,
I'm not sure that is supported anyway.
Mixing in the module one will ensure that we don't break method caches,
and eliminates a runtime check so it should speed up tests (slightly).
Diffstat (limited to 'activerecord/test/cases/validations/i18n_generate_message_validation_test.rb')
0 files changed, 0 insertions, 0 deletions