diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-12 23:28:31 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-12 23:28:31 +0100 |
commit | 2286fa94716b138a7763e95ade87a7582864bb42 (patch) | |
tree | 2add62f200f3aac7b25a9e829485cab829088c93 /actionview/test/fixtures/project.rb | |
parent | 40599d1d7468e8d13932ada859987d9d2f32cb18 (diff) | |
download | rails-2286fa94716b138a7763e95ade87a7582864bb42.tar.gz rails-2286fa94716b138a7763e95ade87a7582864bb42.tar.bz2 rails-2286fa94716b138a7763e95ade87a7582864bb42.zip |
Prefer empty? to any?.
If the collection isn't empty any? will loop through it.
Spare the loop and be more concise with what we're asking the
collection about.
Diffstat (limited to 'actionview/test/fixtures/project.rb')
0 files changed, 0 insertions, 0 deletions