couchrest_model/lib/couchrest/model
Kostiantyn Kahanskyi 1b5c431053 Should be able to set contextual validations
Contextual validations are active __only__ within
an appropriate context: either ”create" or ”update”.

validates(:name, :presence => true, :on => :create)

validates(:name, :presence => {:on => :update})

See http://edgeguides.rubyonrails.org/active_record_validations_callbacks.html#on

Should fix https://github.com/couchrest/couchrest_model/pull/90
2011-06-08 22:54:35 +02:00
..
core_extensions Fixing issues with Ruby 1.8.7 2011-04-08 22:34:25 +02:00
designs Adding support for start and end key swapping with descending 2011-04-15 19:24:06 +02:00
support Overriding couchrest's database delete method to ensure design cache is deleted 2011-05-19 00:37:17 +02:00
validations Views for unique validations created on loading, not execution 2011-05-20 12:21:42 +02:00
associations.rb Fixing dirty tracking on collection_of association type 2011-05-20 02:15:18 +02:00
base.rb Should be able to set contextual validations 2011-06-08 22:54:35 +02:00
callbacks.rb Should be able to set contextual validations 2011-06-08 22:54:35 +02:00
casted_array.rb Casted array should notify changes on deletion 2011-06-07 20:59:14 -03:00
casted_by.rb Fixing issues with dirty tracking on nested models and related improvements 2011-04-20 16:44:49 +02:00
casted_hash.rb Fixing issues with dirty tracking on nested models and related improvements 2011-04-20 16:44:49 +02:00
casted_model.rb Should be able to set contextual validations 2011-06-08 22:54:35 +02:00
class_proxy.rb Implement #get! and #find! class methods 2011-05-30 21:57:28 -03:00
collection.rb Should always include docs when paginating by Model##paginate 2011-06-06 12:51:02 +02:00
configuration.rb Changing model_type_key one last time to 'type'. General doc refinements for 1.1.0.beta5 release 2011-04-30 13:13:38 +02:00
connection.rb Fixing issues when loading with rails 2011-04-30 00:34:12 +02:00
design_doc.rb Overriding couchrest's database delete method to ensure design cache is deleted 2011-05-19 00:37:17 +02:00
designs.rb Adding filter support to design docs 2011-04-27 13:30:08 +02:00
dirty.rb Fixing issues with dirty tracking on nested models and related improvements 2011-04-20 16:44:49 +02:00
document_queries.rb Implement #get! and #find! class methods 2011-05-30 21:57:28 -03:00
errors.rb Implement #get! and #find! class methods 2011-05-30 21:57:28 -03:00
extended_attachments.rb some speed optimisations. added 'use_dirty' configuration variable 2011-03-03 17:58:57 +10:30
persistence.rb Fixing problem with reloading models and dirty tracking 2011-06-06 01:53:36 +02:00
properties.rb Merge branch 'master' of github.com:couchrest/couchrest_model 2011-05-19 00:10:18 +02:00
property.rb Should be able to assign a casted hash to a hash property 2011-06-07 20:57:48 -03: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
proxyable.rb Fixing issues with proxying and new database code 2011-04-30 01:04:04 +02:00
typecast.rb Adding property build support to enable CastedArray#build 2011-05-21 14:16:39 +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
views.rb Refactoring design doc manipulation for a much simpler and more reliable approach 2011-04-17 02:46:33 +02:00