lib/para/page/model.rb in para-0.7.1 vs lib/para/page/model.rb in para-0.7.2
- old
+ new
@@ -4,10 +4,11 @@
extend ActiveSupport::Concern
included do
has_many :sections, -> { ordered }, class_name: '::Para::Page::Section',
as: :page,
- dependent: :destroy
+ dependent: :destroy,
+ inverse_of: :page
accepts_nested_attributes_for :sections, allow_destroy: true
end
end
end
end