Class: Comment
- Inherits:
-
Object
- Object
- Comment
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- app/models/comment.rb
Instance Method Summary collapse
-
#timestamp ⇒ Object
Stringify the created_at date.
Instance Method Details
#timestamp ⇒ Object
Stringify the created_at date.
16 17 18 |
# File 'app/models/comment.rb', line 16 def self.created_at.in_time_zone("Eastern Time (US & Canada)").strftime("%m/%d/%Y at %I:%M %P") end |