aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-08-17 17:09:39 +0100
committerJon Leighton <j@jonathanleighton.com>2012-08-17 18:22:29 +0100
commit2ff47c48975b52a23982fc7bae592ab32d4fff2e (patch)
tree19dadbaf6196d2b0e3afb57ea90187be9f7b9eef /actionpack
parent8fcd9b6e86274cc36820bfbf55a9d2967177339a (diff)
downloadrails-2ff47c48975b52a23982fc7bae592ab32d4fff2e.tar.gz
rails-2ff47c48975b52a23982fc7bae592ab32d4fff2e.tar.bz2
rails-2ff47c48975b52a23982fc7bae592ab32d4fff2e.zip
Avoid #any?
any? will check that each item in the array is truthy, as opposed to !empty? which will simply check that the array has length. For an empty array, !empty? still seems to be faster than any?
Diffstat (limited to 'actionpack')
0 files changed, 0 insertions, 0 deletions