new feature in desktop for uploading wallpapers or putting url link
This commit is contained in:
1 parent
0f3a8414be
commit
42615f02ea
35 files changed
+97
-34
No files matched your search
@@ -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
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
class DesktopWallpaper
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
mount_uploader :file, ImageUploader
|
||||
|
||||
field :type
|
||||
field :link
|
||||
|
||||
belongs_to :desktop
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user