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