Sha256: 8d1f9c0ec3037cf2f09cbde160c9cebd9da42f90b97c7c2e80b7a3cc72b76a72

Contents?: true

Size: 261 Bytes

Versions: 1

Compression:

Stored size: 261 Bytes

Contents

module Dor
  module Eventable
    extend ActiveSupport::Concern
    included do
      has_metadata :name => 'events', :type => Dor::EventsDS, :label => 'Events'
    end

    def add_event *args
      self.datastreams['events'].add_event *args
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dor-services-5.2.0 lib/dor/models/eventable.rb