lib/exception_alarm/mailer.rb in exception-alarm-1.0.0 vs lib/exception_alarm/mailer.rb in exception-alarm-1.0.1

- old
+ new

@@ -1,15 +1,12 @@ module ExceptionAlarm class Mailer < ActionMailer::Base self.mailer_name = 'mailer' self.append_view_path "#{File.dirname(__FILE__)}/views" - cattr_accessor :prefix - cattr_accessor :sender - cattr_accessor :recipients - self.prefix = '[ERROR]' - self.sender = 'exception@example.com' - self.recipients = [] + thread_local_accessor :prefix, default: '[ERROR]' + thread_local_accessor :sender, default: 'exception@example.com' + thread_local_accessor :recipients def alarm(env, exception) @env = env @exception = exception @kontroller = env['action_controller.instance']