Plugins - Acts as Changed

StarAdd to favorites

Specifies only the changed fields when updating the database record.

Jonathon Viney

http://svn.viney.net.nz/things/rails/plugins/acts_as_changed/

Rails' (MIT)

  • Currently 4.5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Model

Tags

Comments

Add a comment
Jonathan Viney 7 Aug 2006

"It should have a 'return(true) unless changed?'"

Quite correct. I've updated that.

The attribute freezing is done quite purposefully. If you modify attributes in-place the changes are not tracked, which could lead to data not being saved. And, apart from serializable attributes, there's no real need for in-place modification anyway.

mabs29 2 Aug 2006

This plugin could do with a couple of fixes as of 02 Aug 06. It should have a 'return(true) unless changed?' at the beginning of updatewithoutcallbacks(), and should not freeze every attribute -- this should be explicit. Other than that, it is very useful! I just hook it straight into AR::Base and my logs are much cleaner.

mabs29 2 Aug 2006

This plugin could do with a couple of fixes as of 02 Aug 06. It should have a 'return(true) unless changed?' at the beginning of updatewithoutcallbacks(), and should not freeze every attribute -- this should be explicit. Other than that, it is very useful! I just hook it straight into AR::Base and my logs are much cleaner.

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?