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.
orbit-4-1/app/models/design/layout_part.rb

19 lines
253 B
Ruby

class LayoutPart
include Mongoid::Document
include Mongoid::Timestamps
field :name
field :id_tag
field :editable, :type => Boolean
field :class_tag
field :content
embedded_in :layout
def editable?
self.editable
end
end