Peter Williams
2669de9511
Use class_attribute rather than extlib_inheritable_attribute (which is removed in rails 3.1)
2011-05-09 09:47:27 -06:00
Sam Lown
e8e1722241
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
Sam Lown
2cc119b3b3
Fixing issues with dirty tracking on nested models and related improvements
2011-04-20 16:44:49 +02:00
Sam Lown
b3e8fbadc6
Refinements to dirty tracking so always enabled unless loading from the database
2011-04-20 12:31:46 +02:00
Sam Lown
1bced3b207
Merge branch 'master' of https://github.com/2moro/couchrest_model into 2moro-dirty
...
Conflicts:
.gitignore
lib/couchrest/model/base.rb
lib/couchrest/model/configuration.rb
lib/couchrest_model.rb
2011-04-20 10:47:36 +02:00
Sam Lown
bc4c8719d0
Setting default model type name to 'model'
2011-04-18 22:29:25 +02:00
Sam Lown
38257f4909
Time handling improved to ensure UTC always used
2011-04-01 19:45:13 +02:00
Andrew Williams
634813858e
removed use_dirty config option (runs faster)
2011-03-06 13:11:37 +10:30
Andrew Williams
3ad4e1e979
optimisations, and some fixes for ruby 1.8.7
2011-03-06 09:58:54 +10:30
Andrew Williams
2a9305ebd3
implemented some missing dirty functionality for casted_array and casted_hash. improved dirty spec test
2011-03-03 23:22:19 +10:30
Andrew Williams
dcf43e3641
some speed optimisations. added 'use_dirty' configuration variable
2011-03-03 17:58:57 +10:30
Andrew Williams
ce2e2fc9a6
some optimisations
2011-03-01 22:06:42 +10:30
Andrew Williams
270537e95f
fixed comment/whitespace
2011-03-01 01:36:38 +10:30
Andrew Williams
4dbf694e51
now using ActiveModel::Dirty. only writes to database if model.changed?
2011-03-01 01:30:41 +10:30
Sam Lown
1019a44d26
Anonymous casted model properties no longer require block parameter
2011-02-05 22:38:22 +01:00
Lucas Renan
92a10dbfc9
adding rdoc to method properties_with_values
2010-12-22 23:09:00 -02:00
Lucas Renan
04ad16a396
adding functionality to list properties with values
2010-11-10 22:33:46 -02:00
Sam Lown
d0ed97ed8b
Renaming Attribute Protection and solving problem modifying the provided hash to the #attributes= method
2010-10-22 15:39:12 +02:00
Sam Lown
1d1d815435
Adding support for mass_assign_any_attribute config option and refactoring non-api methods into private areas of modules
2010-09-18 15:19:15 +02:00
Sam Lown
97347e70e3
Working on adding support for allowing dynamic properties
2010-09-17 23:25:56 +02:00
Will Leinweber
d333133319
Adds suppport for ActiveModel::Dirty and ::AttributeMethods
...
* ActiveModel::Dirty
** Basic support for dirty tracking
** It does not bubble up any changes to casted models currently
* ActiveModel::AttributeMethods
** Attributes are now read and written through ActiveModel
** This also allows you to add your own attribute methods with
prefix suffix and affix names. For more information check out
ActiveModel::AttributeMethods::ClassMethods
2010-09-16 17:30:43 -05:00
Will Leinweber
1a7154f5bf
refactor #read_ and #write_attribute to behave the same when called with a missing property
2010-08-11 22:27:53 -05:00
Sam Lown
c280b3a29b
Renaming to CouchRest Model
...
Refactored basic directory structure.
Moved to ActiveSupport for Validations and Callbacks.
Cleaned up older code, and removed support for text property types.
2010-06-20 22:01:11 +02:00