teddim/gCamp

View on GitHub
app/models/comment.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Comment < ActiveRecord::Base
  include ActionView::Helpers::DateHelper
  validates :content, presence: true
  belongs_to :task
  belongs_to :user

  def time_in_words
    #time = "self.created_at"
    "#{time_ago_in_words(self.created_at, options = {})} ago"


  end
end