orbit-basic/app/models/snippet.rb

8 lines
137 B
Ruby

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