refactor site_updated, add initial site file tracking

This commit is contained in:
Kyle Drake 2014-10-27 16:34:06 -07:00
parent f50b3a23d9
commit 05807e2f39
7 changed files with 44 additions and 10 deletions

View file

@ -0,0 +1,8 @@
module Sequel::Plugins::CreateTimestamp
module InstanceMethods
def before_create
self.created_at = Time.now if respond_to?(:created_at) && !self.created_at
super
end
end
end