couchrest_model/lib/couchrest/model
Simone Carletti f76517d0fa Narrow the rescued exception to avoid catching class evaluation errors that has nothing to to with the association.
Example:

    /Users/weppos/.rvm/gems/ruby-1.8.7-p330/gems/couchrest_model-1.0.0/lib/couchrest/model/associations.rb:29:in `belongs_to': Unable to convert class name into Constant for Document#dossier (RuntimeError)

although the real error is

    /Users/weppos/Projects/working/.../app/models/user.rb:56: undefined method `validates_uniqueness_of' for User:Class (NoMethodError)
2011-02-24 23:38:39 -03:00
..
support Renaming support delete method so as not to conflict with ExtendedDocument 2010-06-21 15:10:42 +02:00
validations Do not specify options[:message] for ActiveModel::Errors#add if it's nil 2011-01-18 09:00:36 -05:00
associations.rb Narrow the rescued exception to avoid catching class evaluation errors that has nothing to to with the association. 2011-02-24 23:38:39 -03:00
base.rb Renaming Attribute Protection and solving problem modifying the provided hash to the #attributes= method 2010-10-22 15:39:12 +02:00
callbacks.rb Use :validation callbacks, not the :validate callbacks reserved by ActiveModel, ensuring callbacks are actually run when they're supposed to be. 2011-02-01 14:32:38 -05:00
casted_array.rb Renaming to CouchRest Model 2010-06-20 22:01:11 +02:00
casted_model.rb Renaming Attribute Protection and solving problem modifying the provided hash to the #attributes= method 2010-10-22 15:39:12 +02:00
class_proxy.rb add method 'last' to simplify queries 2010-12-31 18:59:57 -02:00
collection.rb Fixing the database in view bug 2010-12-02 01:53:45 +01:00
configuration.rb Renaming Attribute Protection and solving problem modifying the provided hash to the #attributes= method 2010-10-22 15:39:12 +02:00
design_doc.rb Adding configuration support and changing 'couchrest-type' key to 'model' along with config options 2010-09-17 23:00:55 +02:00
document_queries.rb add method 'last' to simplify queries 2010-12-31 18:59:57 -02:00
errors.rb Renaming to CouchRest Model 2010-06-20 22:01:11 +02:00
extended_attachments.rb creating attachments accessor 2010-08-03 23:58:28 -03:00
persistence.rb Adding configuration support and changing 'couchrest-type' key to 'model' along with config options 2010-09-17 23:00:55 +02:00
properties.rb Anonymous casted model properties no longer require block parameter 2011-02-05 22:38:22 +01:00
property.rb Make deep clone of default property values 2011-01-18 08:13:05 -05:00
property_protection.rb Renaming Attribute Protection and solving problem modifying the provided hash to the #attributes= method 2010-10-22 15:39:12 +02:00
typecast.rb Handling cases when , used instead of . more elegantly 2010-10-23 20:59:24 +02:00
validations.rb Use :validation callbacks, not the :validate callbacks reserved by ActiveModel, ensuring callbacks are actually run when they're supposed to be. 2011-02-01 14:32:38 -05:00
view.rb Adding the initial workings of the view class 2010-12-02 01:42:52 +01:00
views.rb Adding configuration support and changing 'couchrest-type' key to 'model' along with config options 2010-09-17 23:00:55 +02:00