This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
|
class Group
|
|
include Mongoid::Document
|
|
include Mongoid::Timestamps
|
|
|
|
belongs_to :section
|
|
has_many :tiles, :autosave => true, :dependent => :destroy
|
|
before_create :initialize_tile
|
|
|
|
def initialize_tile
|
|
self.tiles.build
|
|
self.tiles.build
|
|
end
|
|
|
|
end
|
|
|