app/models/spina/page_part.rb in spina-0.11.1 vs app/models/spina/page_part.rb in spina-0.12.0
- old
+ new
@@ -1,7 +1,8 @@
module Spina
class PagePart < ApplicationRecord
include Part
+ include Optionable
belongs_to :page, inverse_of: :page_parts
belongs_to :page_partable, polymorphic: true, optional: true
accepts_nested_attributes_for :page_partable, allow_destroy: true