[Nitro] Revisable -- is it the correct semantics??
manveru at weez-int.com
Tue Jun 27 23:54:35 EDT 2006
On Wednesday 28 June 2006 12:25, James Britt wrote:
> Michael Fellinger wrote:
> > ...
> > I am all for this solution, would make it easy to use stuff like
> > class Page
> > is Reviseable
> > property :title, String
> > property :text, String
> > end
> > page = Page.create_with :title => 'hello world' :text => 'puts "Hello
> > World!"' page.save
> > # this should be revision 0
> > page.save
> > # revision 1 - yes, i want automagic revising...
> What was revised? You want the revision number to get upped on every
> save, even if the item has not changed? Hmmm.
> On the other hand, to do otherwise may introduce assorted questions
> about determining when something has changed in a meaningful way (i.e.,
> some concept of a 'dirty' flag)
Which also raises the question of partial updates - depending on what
That is what i forgot - i think there's no problem with rising the revision on
save... is there?
More information about the Nitro-general