Fix bug due to change of structure for stylesheet

This commit is contained in:
chris 2012-11-06 12:33:00 +08:00
parent b40d4702d5
commit 23e86bfe31
2 changed files with 2 additions and 2 deletions

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

View File

@ -1,6 +1,6 @@
class Theme < Stylesheet
belongs_to :design
belongs_to :css, polymorphic: true
protected