orbit-basic/app/models/design/layout_part.rb

19 lines
248 B
Ruby

class LayoutPart
include Mongoid::Document
include Mongoid::Timestamps
field :name
field :id_tag
field :editable
field :class_tag
field :content
embedded_in :layout
def editable?
self.editable.eql?('true')
end
end