Class: Comment

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
app/models/comment.rb

Instance Method Summary collapse

Instance Method Details

#timestampObject

Stringify the created_at date.



16
17
18
# File 'app/models/comment.rb', line 16

def timestamp
  self.created_at.in_time_zone("Eastern Time (US & Canada)").strftime("%m/%d/%Y at %I:%M %P")
end