Method: NoBrainer::Document::Timestamps#_create
- Defined in:
- lib/no_brainer/document/timestamps.rb
#_create(options = {}) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/no_brainer/document/timestamps.rb', line 9 def _create(={}) now = Time.now self.created_at = now unless created_at_changed? self.updated_at = now unless updated_at_changed? super end |