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.
|
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 |