karmi/tire — pull request #864 by FestivalBobcats (2013-09-07 23:06:02+00:00)
Title: Lambda/proc property defaults should be called at record initialization as opposed to time of property definition

class PersistentArticleWithDefaults
include Tire::Model::Persistence

property :created_at, :default => lambda { Time.now }
end

As it is currently in the master branch, lambda-based defaults for properties are evaluated at the time of definition. This causes all records created to have the same value for "created_at", which does not appear to be the intended behavior (unless I am wrong).