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
248 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
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.eql?('true')
end
2011-05-18 02:00:00 +00:00
2011-08-10 09:28:10 +00:00
end