diff options
author | James McKinney <james@slashpoundbang.com> | 2015-05-21 14:20:03 +0200 |
---|---|---|
committer | James McKinney <james@slashpoundbang.com> | 2015-05-21 14:20:03 +0200 |
commit | 4329ffa27cf83c00e03a0b0600ee54ce06056ee3 (patch) | |
tree | c0bc2bf33f7af4a878cd87fb815634197d3bc1ca /app/controllers/admin_request_controller.rb | |
parent | dd289908964c8d60e33ce71724dc9e36c3beb765 (diff) |
FoiAttachment: Use simpler Array#include? instead of Hash#[]
Hash#[] is faster, but harder to read. If this method can be proven to be a
performance bottleneck, Set#member? can be used (both fast and easy to read).
Diffstat (limited to 'app/controllers/admin_request_controller.rb')
0 files changed, 0 insertions, 0 deletions