Modifications for design, pages, page_parts…

Move orbit_bar out of kernel.js
This commit is contained in:
Christophe Vilayphiou committed 2012-02-17 02:09:32 +08:00
1 parent 5da75161c4
commit 9cd3cbc478
11 files changed
+25 -34

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ class Design
embeds_many :themes, :cascade_callbacks => true
embeds_many :javascripts, :cascade_callbacks => true
embeds_many :images, :cascade_callbacks => true
embeds_many :custom_images, :class_name => 'Image', :cascade_callbacks => true
# embeds_many :custom_images, :class_name => 'Image', :cascade_callbacks => true
validates_presence_of :title
validates_presence_of :author
+1 -1
View File
@@ -7,7 +7,7 @@ class Layout < DesignFile
embedded_in :design
embeds_many :layout_parts
after_save :parse_layout
before_save :parse_layout
def content
self.file.read.force_encoding("UTF-8") rescue ''
-8
View File
@@ -4,15 +4,7 @@ class LayoutPart
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