Fix bug due to change of structure for stylesheet

This commit is contained in:
chris committed 2012-11-06 12:33:00 +08:00
1 parent b40d4702d5
commit 23e86bfe31
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ class Design
has_many :images,as: :imgs, :autosave => true, :dependent => :destroy
has_many :javascripts, as: :js, :autosave => true, :dependent => :destroy
has_many :pages
has_many :themes, :autosave => true, :dependent => :destroy
has_many :themes, as: :css, :autosave => true, :dependent => :destroy
accepts_nested_attributes_for :images, :allow_destroy => true
accepts_nested_attributes_for :javascripts, :allow_destroy => true
+1 -1
View File
@@ -1,6 +1,6 @@
class Theme < Stylesheet
belongs_to :design
belongs_to :css, polymorphic: true
protected