app/models/component.rb in ddr-models-1.11.8 vs app/models/component.rb in ddr-models-1.12.0
- old
+ new
@@ -4,9 +4,10 @@
# Examples: Page of a book, track of a recording, etc.
#
class Component < Ddr::Models::Base
include Ddr::Models::HasContent
+ include Ddr::Models::HasStructMetadata
belongs_to :parent, :property => :is_part_of, :class_name => 'Item'
belongs_to :target, :property => :has_external_target, :class_name => 'Target'
alias_method :item, :parent