Module: ActiveFedora::WithMetadata

Extended by:
ActiveSupport::Autoload, ActiveSupport::Concern
Defined in:
lib/active_fedora/with_metadata.rb,
lib/active_fedora/with_metadata/metadata_node.rb

Defined Under Namespace

Modules: ClassMethods Classes: MetadataNode

Instance Method Summary collapse

Instance Method Details

#metadata_nodeObject


8
9
10
# File 'lib/active_fedora/with_metadata.rb', line 8

def 
   ||= self.class..new(self)
end

#saveObject


12
13
14
15
16
17
# File 'lib/active_fedora/with_metadata.rb', line 12

def save(*)
  if super
    . = described_by # TODO only necessary if the URI was < > before
    .save # TODO if changed?
  end
end