Fix bug due to change of structure for stylesheet
This commit is contained in:
parent
b40d4702d5
commit
23e86bfe31
|
@ -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,6 +1,6 @@
|
|||
class Theme < Stylesheet
|
||||
|
||||
belongs_to :design
|
||||
belongs_to :css, polymorphic: true
|
||||
|
||||
protected
|
||||
|
||||
|
|
Reference in New Issue