Commit graph

22 commits

Author SHA1 Message Date
Sam Lown 7c7ee2c2b1 Upgrading to use CouchRest 1.1.0.pre3 and new Hash-less design 2011-06-08 18:22:35 +02:00
Sam Lown f5be6c7679 Fixing problem with reloading models and dirty tracking 2011-06-06 01:53:36 +02:00
Sam Lown 634fdf8b2f Merge branch 'master' of github.com:couchrest/couchrest_model 2011-06-05 11:21:12 +02:00
Sam Lown 36157a01d3 Destroy method now freezes instead of removing ids 2011-06-05 11:21:01 +02:00
Peter Williams 53bc7637e2 tests for #create and #create! init blocks 2011-05-31 16:31:37 -06:00
Peter Williams 2b9a5193b4 add init block support to #create and #create! 2011-05-31 16:03:08 -06:00
Sam Lown f3dd4ae06e Working on adding automated configuration support 2011-04-29 21:40:36 +02:00
Sam Lown 37c021a6b9 Started initial idea for automated database configuration 2011-04-29 17:24:11 +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
Andrew Williams 634813858e removed use_dirty config option (runs faster) 2011-03-06 13:11:37 +10:30
Andrew Williams dcf43e3641 some speed optimisations. added 'use_dirty' configuration variable 2011-03-03 17:58:57 +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 f58482553c Merge branch 'master' of github.com:couchrest/couchrest_model into adv_design 2011-02-27 20:19:09 +01:00
Simone Carletti 6b66e7f23e Whitespaces. 2011-02-24 23:44:17 -03:00
Simone Carletti 608869be45 Fixed typo 2011-02-24 23:43:25 -03:00
Simone Carletti 2c24702765 Add Base#reload (closes #12)
Signed-off-by: Marcos Tapajós <tapajos@gmail.com>
2011-02-24 23:42:28 -03:00
Sam Lown a78e3b74d6 Adding support for proxying and more refinements to views 2011-02-09 21:21:03 +01:00
Sam Lown 85cd1308bc Adding configuration support and changing 'couchrest-type' key to 'model' along with config options 2010-09-17 23:00:55 +02:00
Sam Lown fafbfff474 Ensuring update_attributes cannot be called in CastedModel as per issue #9 2010-08-24 19:27:35 +02: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