Skip to content
Browse files

fix tests for issue #366

  • Loading branch information...
1 parent 3fca9fa commit 60df273e4ba3dc5f4fed19284f93414900840834 Didier Lafforgue committed Apr 17, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/mailers/locomotive/notifications.rb
  2. +1 −1 app/models/locomotive/content_entry.rb
View
2 app/mailers/locomotive/notifications.rb
@@ -3,7 +3,7 @@ class Notifications < ActionMailer::Base
default :from => Locomotive.config.mailer_sender
- def new_content_entry(entry, account)
+ def new_content_entry(account, entry)
@account, @entry, @type = account, entry, entry.content_type
subject = t('locomotive.notifications.new_content_entry.subject', :type => @type.name, :locale => account.locale)
View
2 app/models/locomotive/content_entry.rb
@@ -148,7 +148,7 @@ def send_notifications
self.site.accounts.each do |account|
next unless self.content_type.public_submission_accounts.map(&:to_s).include?(account._id.to_s)
- Locomotive::Notifications.new_content_entry(self, account).deliver
+ Locomotive::Notifications.new_content_entry(account, self).deliver
end
end

0 comments on commit 60df273

Please sign in to comment.
Something went wrong with that request. Please try again.