2015-09-24 15:43:47 +00:00
|
|
|
class FloorSubUnit
|
|
|
|
include Mongoid::Document
|
|
|
|
include Mongoid::Timestamps
|
|
|
|
include Slug
|
|
|
|
|
|
|
|
field :title, as: :slug_title, localize: true
|
2020-10-01 06:27:54 +00:00
|
|
|
field :content, localize: true
|
2015-09-24 15:43:47 +00:00
|
|
|
has_many :floor_sub_unit_images, :autosave => true, :dependent => :destroy
|
|
|
|
belongs_to :floor_unit
|
|
|
|
|
|
|
|
end
|