Commit Graph

17 Commits

Author SHA1 Message Date
Zachery Hostens 6878fc5a0e fix up code and tests to succeed 2009-11-19 21:15:30 -06:00
Zachery Hostens dc5e6fd970 fix controller test to properly execute 2009-11-19 20:56:25 -06:00
Zachery Hostens ba0982e9de update test code to work without being in a rails app 2009-11-19 20:51:25 -06:00
Zachery Hostens 57ca3aaa28 clean up database.yml file to be more proper 2009-11-19 20:51:03 -06:00
Andy Stewart 52981bfca3 Optionally ignore attributes. 2009-10-28 13:12:36 +00:00
Andy Stewart 3bf29c2930 Index the polymorphic join. 2009-06-22 18:35:03 +01:00
Andy Stewart 946a612d4e Added index method to Version. 2009-06-22 16:37:00 +01:00
Andy Stewart c6441656d4 Previous and next methods for Version. 2009-06-19 16:46:33 +01:00
Andy Stewart 9006313496 Added tests for recovering a destroyed object. 2009-06-19 10:14:04 +01:00
Andy Stewart 350edcf4c0 Use the item we belong to where possible.
This has two benefits:
* Associations work since we are using the real object.
* The code is simpler and more intuitive.
2009-06-18 18:21:20 +01:00
Andy Stewart 2958a816a9 Copy only the versions has_many association. 2009-06-18 11:38:32 +01:00
Andy Stewart 376a493a24 Copy has_many associations when reifying. 2009-06-18 11:10:54 +01:00
Andy Stewart 86f89faf3b Don't save an object when associating it to reified model. 2009-06-18 10:30:33 +01:00
Andy Stewart a4300d4d98 Preserve has_one associations when reifying a version. 2009-06-18 09:45:46 +01:00
Andy Stewart b6bd59fd3d Handle single table inheritance when reifying. 2009-06-17 12:36:23 +01:00
Andy Stewart 8441414cb1 Removed unused model. 2009-06-17 12:16:16 +01:00
Andy Stewart e9a8648c22 First commit. 2009-05-27 16:21:20 +01:00