Commit 661d4188f87e5f0a47f5960c87c6a63a5b89e93c

Authored by Antonio Terceiro
1 parent 025643a6

Revert "scrap: Fix constant name"

This reverts commit 926442b6d0c469ce6c73d5e32cf9c686e0fca5b4.
app/mailers/scrap_notifier.rb
1   -class ScrapNotifier < ActionMailer::Base
  1 +class Scrap::Notifier < ActionMailer::Base
2 2 def notification(scrap)
3 3 sender, receiver = scrap.sender, scrap.receiver
4 4 @recipient = receiver.name
... ...
app/models/scrap.rb
... ... @@ -25,7 +25,7 @@ class Scrap &lt; ActiveRecord::Base
25 25  
26 26 after_create do |scrap|
27 27 scrap.root.update_attribute('updated_at', DateTime.now) unless scrap.root.nil?
28   - ScrapNotifier.notification(scrap).deliver if scrap.send_notification?
  28 + Scrap::Notifier.notification(scrap).deliver if scrap.send_notification?
29 29 end
30 30  
31 31 before_validation :strip_all_html_tags
... ...