update for desktop widgets
This commit is contained in:
1 parent
2e809c5c19
commit
ca3e06c58b
37 files changed
+284
-179
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user