Sha256: ae4c1bf8223b19549b236a007b526bac3267175ce3ab958537b0604c63e7030c
Contents?: true
Size: 548 Bytes
Versions: 4
Compression:
Stored size: 548 Bytes
Contents
module Errdo class Exception def initialize(env) user_parser = Errdo::Models::UserParser.new(env) @env_parser = Errdo::Models::ErrorEnvParser.new(env, user_parser) create_errors(@env_parser) unless Errdo.error_name.blank? Errdo.notify_with.each do |notifier| notifier.notify(@env_parser) end end private def create_errors(parser) error = Errdo::Error.find_or_create(parser.error_hash) error.try(:error_occurrences).try(:create, parser.error_occurrence_hash) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
errdo-0.11.3 | app/models/errdo/exception.rb |
errdo-0.11.2 | app/models/errdo/exception.rb |
errdo-0.11.1 | app/models/errdo/exception.rb |
errdo-0.11.0 | app/models/errdo/exception.rb |