Sha256: f342da18158d84dda555a3bd356a4e42be06b3070faf9a4a9d9f308749d38429
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 Bytes
Contents
module Og # Adds timestamping functionality. module Timestamped property :create_time, Time property :update_time, Time property :access_time, Time pre "@create_time = @update_time = Time.now", :on => :og_insert pre "@update_time = Time.now", :on => :og_update def touch! @access_time = Time.now end end end # * George Moschovitis <gm@navel.gr>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
og-0.21.0 | lib/og/mixin/timestamped.rb |
og-0.21.2 | lib/og/mixin/timestamped.rb |