Commit graph

11 commits

Author SHA1 Message Date
Will Leinweber 15ea10eb9c attempt to merge wildchild/type_cast, still failing specs 2010-02-17 16:35:42 -06:00
Tapajós 58d621d399 Changing some validations to be compatible with activemodel. 2009-10-31 09:54:16 -02:00
wildchild e27135cb1e Fixed required_field_validator to behave correctly with boolean fields 2009-07-21 03:18:07 +06:00
Rob Kaufman baabe40674 Fixed validates_is_numeric when dealing with an actual float 2009-07-08 09:17:07 -07:00
Geoff Buesing d9417f3915 Extract humanize method from Extlib::Inflection to CouchRest.humanize, so that Extlib::Inflection dependency can be removed 2009-03-19 16:37:45 -07:00
Matt Aimonetti 72542dc876 fixed a bug with validation 2009-02-20 18:32:01 -08:00
Matt Aimonetti 2f8caa8740 added a new validator 2009-02-20 15:34:49 -08:00
Matt Aimonetti e448112ff6 fixed some serious issues but left some for tomorrow (validations aren't working right) 2009-02-10 02:15:39 -08:00
Matt Aimonetti 890b60cae4 added autovalidation (auto_validate! in your ExtendedDocument) and extracted some extlib stuff so we will soon be able to remove the dependency. 2009-02-05 17:06:12 -08:00
Matt Aimonetti fec21c3ff3 got rid of extlib hooking system in favor of the new Rails3 callback system. As well as fixed timestamps! in ExtendedDoc 2009-02-03 17:33:31 -08:00
Matt Aimonetti dfdcd79a58 Started added a validation mixin
Usage:
  class Invoice < CouchRest::ExtendedDocument
    include CouchRest::Validation

    property :client_name
    property :employee_name
    property :location

    # Validation
    validates_present :client_name, :employee_name
    validates_present :location, :message => "Hey stupid!, you forgot the location"

  end
2009-02-02 19:21:32 -08:00