Working with timeranges

Posted by Andre Foeken Fri, 31 Aug 2007 19:23:31 GMT

Everything in moves 'acts_as_placed_on_timeline'. This entails that every object has a valid_from and valid_to field, which specify when they are active.

A simple example is an address, it becomes active (valid_from) when a person starts living there and is deactivated (valid_to) when the person moves to another address.

Looking at the example above it is hard to see why this would ever pose a problem with code readability. Hang in there a moment longer.

Read more...

Posted in ,  | Tags , , , ,  | 1 comment