Fix custom image class
This commit is contained in:
1 parent
b8243df5b5
commit
83827f82ec
2 files changed
+2
-2
No files matched your search
@@ -16,7 +16,7 @@ class Design
|
||||
embeds_many :themes
|
||||
embeds_many :javascripts
|
||||
embeds_many :images
|
||||
embeds_many :custom_images, as: :design_image
|
||||
embeds_many :custom_images, :class_name => 'Image', as: :design_image
|
||||
|
||||
validates_presence_of :title
|
||||
validates_presence_of :author
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ class Page < Item
|
||||
has_many :page_parts
|
||||
belongs_to :module_app
|
||||
|
||||
embeds_many :custom_images, as: :design_image
|
||||
embeds_many :custom_images, :class_name => 'Image', as: :design_image
|
||||
|
||||
def create_parts
|
||||
page_design = self.design
|
||||
|
||||
Reference in new issue
Block a user