orbit-basic/app/models/announcement.rb

12 lines
225 B
Ruby
Raw Normal View History

2010-01-04 07:52:30 +00:00
class Announcement
2009-06-01 02:54:16 +00:00
2010-01-04 07:52:30 +00:00
include MongoMapper::Document
2010-01-08 07:32:44 +00:00
key_i18n :title, String
key_i18n :content, String
2009-06-01 02:54:16 +00:00
def to_liquid
2010-01-08 07:32:44 +00:00
{ "id" => self.id, "title" => self.title, "content" => self.content }
2010-01-04 09:37:55 +00:00
end
2009-06-01 02:54:16 +00:00
end