orbit-4-2/app/models/desktop/desktop_wallpaper.rb

11 lines
179 B
Ruby

class DesktopWallpaper
include Mongoid::Document
include Mongoid::Timestamps
mount_uploader :file, ImageUploader
field :type
field :link
belongs_to :desktop
end