Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Neff <benjamin@coding4coffee.ch>2015-06-03 03:39:12 +0300
committerDennis Schubert <mail@dennis-schubert.de>2015-06-04 05:16:03 +0300
commitb6c46b3fc488b9bda12529c093ead4b4311fd557 (patch)
tree1065ec700ed3e1ba537569622a0717397539e4fa /app/mailers
parent1b77258d0e1486c8d4a8f5e4ee9fb327963e5822 (diff)
add logging mixin and replace federation-logger
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/notification_mailers/base.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/mailers/notification_mailers/base.rb b/app/mailers/notification_mailers/base.rb
index b3cc8136a..efbde43a1 100644
--- a/app/mailers/notification_mailers/base.rb
+++ b/app/mailers/notification_mailers/base.rb
@@ -1,5 +1,7 @@
module NotificationMailers
class Base
+ include Diaspora::Logging
+
attr_accessor :recipient, :sender
delegate :unconfirmed_email, :confirm_email_token,
@@ -53,9 +55,5 @@ module NotificationMailers
logger.info(log_string)
end
-
- def logger
- @logger ||= ::Logging::Logger[self]
- end
end
end