Path: | lib/couchrest/support/rails.rb |
Last Update: | Sun Mar 21 03:53:57 -0600 2010 |
This file contains various hacks for Rails compatibility. To use, just require in environment.rb, like so:
require 'couchrest/support/rails'
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