orbit-basic/app/models/layout.rb

15 lines
194 B
Ruby
Raw Normal View History

class Layout < DesignFile
2010-01-04 07:52:30 +00:00
embedded_in :design
2011-05-18 02:00:00 +00:00
attr_reader :content
2011-05-18 02:00:00 +00:00
has_many :layout_parts
def content
self.file.read
end
2011-05-18 02:00:00 +00:00
def self.exist_one?
Layout.count > 0
end
2011-03-08 09:25:46 +00:00
end