aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/services_controller_spec.rb
diff options
context:
space:
mode:
authorJames McKinney <james@slashpoundbang.com>2015-05-21 14:20:03 +0200
committerJames McKinney <james@slashpoundbang.com>2015-05-21 14:20:03 +0200
commit4329ffa27cf83c00e03a0b0600ee54ce06056ee3 (patch)
treec0bc2bf33f7af4a878cd87fb815634197d3bc1ca /spec/controllers/services_controller_spec.rb
parentdd289908964c8d60e33ce71724dc9e36c3beb765 (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 'spec/controllers/services_controller_spec.rb')
0 files changed, 0 insertions, 0 deletions