Feature request: adding #empty? to ActiveRecord Quering

Hi,

I couldn’t find a one word opposite for

MyModel.any?

So I thought #empty? could be added in ActiveRecord Quering module:

module ActiveRecord
  module Querying
    delegate :empty?, :to => :all
  end
end

What do you think?

Thanks

I’m guessing that’s not your complete use-case. Do you just want to see if there are any records saved for that model? MyModel.count(:all).zero?

How about #none? That would be the Enumerable way to do it.

-Benjamin