update for desktop widgets

This commit is contained in:
Harry Bomrah authored and chris committed 2012-11-05 11:40:11 +08:00
1 parent 2e809c5c19
commit ca3e06c58b
37 files changed
+284 -179

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
class Section
include Mongoid::Document
include Mongoid::Timestamps
field :name
belongs_to :desktop
has_many :groups, :autosave => true, :dependent => :destroy
before_create :initialize_group
def initialize_group
self.groups.build
self.groups.build
end
end