orbit-basic/app/models/layout.rb

10 lines
146 B
Ruby

class Layout
include MongoMapper::Document
key :name, String
key_i18n :content, String
validates_presence_of :name
end