Sha256: 9697a21c528bb96f9711918917d1b378cee1175b6df4dbaa5871f279a9a34202
Contents?: true
Size: 843 Bytes
Versions: 6
Compression:
Stored size: 843 Bytes
Contents
class Whoops::EventGroup # notifier responsible for creating identifier from notice details include Mongoid::Document include FieldNames [ :service, :environment, :event_type, :message, :event_group_identifier, :logging_strategy_name ].each do |string_field| field string_field, :type => String end field :last_recorded_at, :type => DateTime field :archived, :type => Boolean, :default => false field :event_count, :type => Integer, :default => 0 has_many :events, :class_name => "Whoops::Event" validates_presence_of :event_group_identifier, :event_type, :service, :message def self.identifying_fields field_names - ["message", "last_recorded_at"] end # @return sorted set of all applicable namespaces def self.services all.distinct(:service).sort end end
Version data entries
6 entries across 6 versions & 1 rubygems