Orbit/app/models/design/layout_part.rb

19 lines
253 B
Ruby
Raw Normal View History

2011-05-18 02:00:00 +00:00
class LayoutPart
include Mongoid::Document
include Mongoid::Timestamps
field :name
2011-08-10 09:28:10 +00:00
field :id_tag
field :editable, :type => Boolean
2011-08-10 09:28:10 +00:00
field :class_tag
2011-05-18 02:00:00 +00:00
field :content
embedded_in :layout
def editable?
self.editable
end
2011-05-18 02:00:00 +00:00
2011-08-10 09:28:10 +00:00
end