new feature in desktop for uploading wallpapers or putting url link

This commit is contained in:
harrybomrah authored and saurabhbhatia committed 2013-08-02 19:32:41 +08:00
1 parent 0f3a8414be
commit 42615f02ea
35 files changed
+97 -34

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ class Desktop
has_and_belongs_to_many :desktop_widgets, :autosave => true
has_many :sections, :autosave => true, :dependent => :destroy
has_many :desktop_wallpapers, :autosave => true, :dependent => :destroy
# has_many :desktop_widgets, :autosave => true, :dependent => :destroy
before_create :initialize_section
+11
View File
@@ -0,0 +1,11 @@
class DesktopWallpaper
include Mongoid::Document
include Mongoid::Timestamps
mount_uploader :file, ImageUploader
field :type
field :link
belongs_to :desktop
end