Scottish Blogs.com


Timestamps that can behave like booleans via Notes from a messy desk April 10th, 2008 at 17:25

image I often come across this particular use case and it’s probably easiest to explain with an example. Take an ActiveRecord model called Book which represents a book in Amazon’s catalogue. In addition to books which are already published, we collect information about books which are going to be released at some point in the future. We store the publication [...]...