rails.rb

Path: lib/couchrest/support/rails.rb
Last Update: Tue Mar 23 12:43:13 +0000 2010

This file contains various hacks for Rails compatibility. To use, just require in environment.rb, like so:

  require 'couchrest/support/rails'

Methods

count   is_a?  

Public Instance methods

Returns the total number of errors added. Two errors added to the same attribute will be counted as such. This method is called by error_messages_for

Hack so that CouchRest::Document, which descends from Hash, doesn‘t appear to Rails routing as a Hash of options

[Validate]