From eea6ad9bec2c7968c00ace6cbee162ab88c39f73 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 5 Feb 2015 16:49:30 -0300 Subject: [PATCH] Revert "Fix scrap notifier class name" --- app/mailers/scrap_notifier.rb | 2 +- app/models/scrap.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mailers/scrap_notifier.rb b/app/mailers/scrap_notifier.rb index 232a6d9..8b4986d 100644 --- a/app/mailers/scrap_notifier.rb +++ b/app/mailers/scrap_notifier.rb @@ -1,4 +1,4 @@ -class ScrapNotifier < ActionMailer::Base +class Scrap::Notifier < ActionMailer::Base def notification(scrap) sender, receiver = scrap.sender, scrap.receiver @recipient = receiver.name diff --git a/app/models/scrap.rb b/app/models/scrap.rb index 362d696..c1a48f5 100644 --- a/app/models/scrap.rb +++ b/app/models/scrap.rb @@ -25,7 +25,7 @@ class Scrap < ActiveRecord::Base after_create do |scrap| scrap.root.update_attribute('updated_at', DateTime.now) unless scrap.root.nil? - ScrapNotifier.notification(scrap).deliver if scrap.send_notification? + Scrap::Notifier.notification(scrap).deliver if scrap.send_notification? end before_validation :strip_all_html_tags -- libgit2 0.21.2