orbit-basic/app/models/snippet.rb

9 lines
181 B
Ruby

class Snippet < CouchFoo::Base
property :name, String
property :content, String # remove later
property_i18n :content, String
validates_presence_of :name
end