Module: Ohm::Timestamping
- Defined in:
- lib/ohm/contrib/timestamping.rb
Overview
Provides created_at / updated_at timestamps.
Instance Method Summary (collapse)
Instance Method Details
- (Object) create
24 25 26 27 28 |
# File 'lib/ohm/contrib/timestamping.rb', line 24 def create self.created_at ||= Time.now.utc.to_s super end |