noosfero | scrap: Fix constant name
Bráulio Bhavamitra
gitlab at gitlab.com
Wed Feb 25 11:27:34 BRT 2015
Bráulio Bhavamitra pushed to refs/heads/master at <a href="https://gitlab.com/noosfero/noosfero">Noosfero / noosfero</a>
Commits:
<a href="https://gitlab.com/noosfero/noosfero/commit/926442b6d0c469ce6c73d5e32cf9c686e0fca5b4">926442b6</a> by Braulio Bhavamitra
scrap: Fix constant name
- - - - -
Changes:
=====================================
app/mailers/scrap_notifier.rb
=====================================
--- a/app/mailers/scrap_notifier.rb
+++ b/app/mailers/scrap_notifier.rb
@@ -1,4 +1,4 @@
-class Scrap::Notifier < ActionMailer::Base
+class ScrapNotifier < ActionMailer::Base
def notification(scrap)
sender, receiver = scrap.sender, scrap.receiver
@recipient = receiver.name
=====================================
app/models/scrap.rb
=====================================
--- 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?
- Scrap::Notifier.notification(scrap).deliver if scrap.send_notification?
+ ScrapNotifier.notification(scrap).deliver if scrap.send_notification?
end
before_validation :strip_all_html_tags
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150225/f497b057/attachment.html>
More information about the Noosfero-dev
mailing list