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
263 B
Ruby
Raw Normal View History

require 'couch_foo'
2009-06-01 02:54:16 +00:00
class Announcement < CouchFoo::Base
property :title, String
property :content, String
validates_presence_of :title
def to_liquid
{ "id" => self.id, "title" => self.title, "content" => self.content }
2009-06-01 02:54:16 +00:00
end
end