Orbit/app/models/announcement.rb

11 lines
236 B
Ruby

require 'couch_foo'
class Announcement < CouchFoo::Base
property_i18n :title, String
property_i18n :content, String
def to_liquid
{ "id" => self.id, "title" => self.title, "content" => self.content }
end
end