Chris Hall
2006-Jun-27 23:41 UTC
[UPDATE] acts_as_modified 1.1.3 now with tests (was Re: [Rails] [ANN] plugin, acts_as_modified 1.1.2)
Ask and ye shall receive. 1.1.3 now has a plugin test. i had one small issue with after_save being called, so i added the callback in. it works when i create a test app and run the unit tests so i think it has something to do with how i override the save method. if you have any suggestions, please feel free to comment. As far as the AR test suite goes...I''m not sure how this plugin would be tested within the suite. Perhaps you could provide some feedback on how I might go about it. Thanks. Chris On 6/27/06, Jonathan Viney <jonathan.viney@gmail.com> wrote:> Where are the tests?!?! And have you run the AR test suite alongside > this plugin? > > -Jonathan. > > On 6/27/06, Chris Hall <christopher.k.hall@gmail.com> wrote: > > After a couple of thoughtful comments, I''ve made changes to > > acts_as_modified plugin. It no longer relies on after_find and > > after_initialize, which were both causing performance issues. > > > > Please check it out and let me know what you think, where you might > > recommend improvements or additional features and what not. > > > > One feature I do have planned (again, thanks to comments), but haven''t > > had much time to devote to it at the moment, is to introduce the > > ability to only save those attributes that have been modified. There > > are of course issues revolving around this, ie, what to do about magic > > columns like created_at/updated_at, other attributes introduced via > > other plugins, mysql timestamp columns, etc. > > > > Chris > > > > http://rubyforge.org/projects/actsasmodified > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >