Module: Ripple::Timestamps::InstanceMethods

Defined in:
ripple/lib/ripple/timestamps.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) touch

Sets the :updated_at attribute before saving the document.



35
36
37
# File 'ripple/lib/ripple/timestamps.rb', line 35

def touch
  self.updated_at = Time.now
end