Commit c4efed9c authored by 神楽坂玲奈's avatar 神楽坂玲奈

parent 7adfa58d
......@@ -8,4 +8,7 @@ class Post < ActiveRecord::Base
def self.yesterday
Post.where(['created_at < ? and created_at > ?', Date.today, Date.today - 1 ])
end
def to_s
"#{topic}, <a href=/topic/#{topic.id}#post#{id}>#{displayorder}#</a>".html_safe
end
end
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment