mirror of
https://github.com/neocities/neocities.git
synced 2025-05-15 00:47:16 +02:00
refactor site_updated, add initial site file tracking
This commit is contained in:
parent
f50b3a23d9
commit
05807e2f39
7 changed files with 44 additions and 10 deletions
8
ext/sequel/plugins/create_timestamp.rb
Normal file
8
ext/sequel/plugins/create_timestamp.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue