Timestamp events before publishing.
# File lib/cabin/mixins/timestamp.rb, line 5 def self.extended(instance) self.included(instance.class) end
# File lib/cabin/mixins/timestamp.rb, line 8 def self.included(klass) klass.filter do |event| event[:timestamp] = Time.now.strftime("%Y-%m-%dT%H:%M:%S.%6N%z") end end