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

git-svn-id: http://glupx.googlecode.com/svn/trunk/Reliz@46 189f022a-1064-8ae2-3e6f-c4a67275c50b

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