Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Add CouchRest::Model.count method

#18

You can get the count of all objects this way:


module CouchRest

  class Model < Hash

    def count
      self.all(:count => 0, :raw => true)["total_rows"].to_i
    end

  end

end

Reported by juozas (at tuesdaystudios) · November 3rd, 2008 @ 03:21 PM

State: new
Milestone: none
Assigned to: nobody

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.