orbit-basic/app/models/announcement.rb

16 lines
299 B
Ruby
Raw Normal View History

2009-06-01 02:54:16 +00:00
class Announcement < CouchFoo::Base
property :title, String
property :content, String
validates_presence_of :title
def self.load
# hmm.... but one module will has many pages
end
def to_liquid
{ :title => self.title, :content => self.content }
end
end