class Chapter include Mongoid::Document include Slug field :title, type: String, localize: true field :author, type: String, localize: true field :author_description, type: String, localize: true field :text, localize: true field :page, type: String field :sort_number, type: Integer mount_uploader :file, AssetUploader belongs_to :publication end