aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2016-01-12 14:09:43 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2016-01-12 14:09:56 -0800
commit04d61612f9fdc7f80202cd7d68c58900d8f40ab3 (patch)
tree4e2f9ebb4172f48ee7381d2f7ee0fac877fc4b61 /tools
parent12f4976200019ebc6b699e512691d9e49a5c6988 (diff)
downloadrails-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 'tools')
0 files changed, 0 insertions, 0 deletions