diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-04-29 20:32:44 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-04-29 22:01:19 +0100 |
commit | 209fd91c5eec6f7cda208ffd9ffd762f4ca4e936 (patch) | |
tree | 47329c366b13d01b5d18ec46e599cc162c81a872 | |
parent | 199a3072808920f1ad85ba6d197216dd5a6c9ea3 (diff) |
Use empty?, it's more idiomatic
-rw-r--r-- | lib/acts_as_xapian/acts_as_xapian.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/acts_as_xapian/acts_as_xapian.rb b/lib/acts_as_xapian/acts_as_xapian.rb index 8836f0c4c..6bafd95dc 100644 --- a/lib/acts_as_xapian/acts_as_xapian.rb +++ b/lib/acts_as_xapian/acts_as_xapian.rb @@ -609,7 +609,7 @@ module ActsAsXapian # we have the info from acts_as_xapian. model_classes = ActsAsXapianJob.pluck("DISTINCT model").map { |a| a.constantize } # If there are no models in the queue, then nothing to do - return if model_classes.size == 0 + return if model_classes.empty? ActsAsXapian.writable_init # Abort if full rebuild is going on |