Orbit/app/models/snippet.rb

8 lines
145 B
Ruby

class Snippet
include MongoMapper::Document
key :name, String, :required => true, :index => true
key_i18n :content, String
end