Sha256: e3ec312f0ac6f783d51c30288f5d18b919b5fcc2ad7da2ee8a89017c2a99999b
Contents?: true
Size: 436 Bytes
Versions: 36
Compression:
Stored size: 436 Bytes
Contents
module Hyrax module WithEvents def stream Nest.new(event_class)[to_param] end def event_class self.class.name end def events(size = -1) event_stream.fetch(size) end def log_event(event_id) event_stream.push(event_id) end private def event_store RedisEventStore end def event_stream event_store.for(stream[:event]) end end end
Version data entries
36 entries across 36 versions & 1 rubygems