Commit 86abca4772fbb34107ec821cc316fdf590cf33d8

Authored by Andrey Karpikov
1 parent a0f996f2

check delete plugin params

No preview for this file type
@@ -10,7 +10,7 @@ module Kanjai @@ -10,7 +10,7 @@ module Kanjai
10 accepts_nested_attributes_for :page_content_markers 10 accepts_nested_attributes_for :page_content_markers
11 11
12 has_many :page_content_attributes, dependent: :destroy 12 has_many :page_content_attributes, dependent: :destroy
13 - accepts_nested_attributes_for :page_content_attributes 13 + accepts_nested_attributes_for :page_content_attributes, reject_if: :all_blank, allow_destroy: true
14 14
15 def self.edit_template(page, content_type) 15 def self.edit_template(page, content_type)
16 case content_type 16 case content_type
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.380" 2 + VERSION = "0.0.381"
3 end 3 end