Module: N::CreateTime

Defined in:
lib/parts/content.rb

Overview

CreateTime mixin.

Instance Method Summary collapse

Instance Method Details

#og_pre_insert(conn) ⇒ Object



26
27
28
# File 'lib/parts/content.rb', line 26

def og_pre_insert(conn)
	@create_time = @update_time = Time.now
end

#og_pre_update(conn) ⇒ Object



30
31
32
# File 'lib/parts/content.rb', line 30

def og_pre_update(conn)
	@update_time = Time.now
end