Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (13 sloc) 335 Bytes
TimestampedField
==================
Use timestamps for boolean columns.
Example
=======
class User < ActiveRecord::Base
include TimestampedField
timestamped_field :active
end
u = User.new
u.active = true
u.active_changed_at #=> Tue May 19 15:53:29 -0400 2009
Copyright (c) 2009 Scott Taylor, released under the MIT license