This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/models/announcement.rb

13 lines
333 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
key :component_name, String, :required => true, :index => true
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
{ "component_name" => self.entry_name, "id" => self.id.to_s, "title" => self.title, "content" => self.content }
2010-01-04 09:37:55 +00:00
end
2009-06-01 02:54:16 +00:00
end