Module: Shoden::Timestamps
- Defined in:
- lib/shoden/timestamps.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#save ⇒ Object
10 11 12 13 14 15 |
# File 'lib/shoden/timestamps.rb', line 10 def save self.created_at = Time.now.utc.to_i if @_id.nil? self.updated_at = Time.now.utc.to_i super end |