From 3d789ea4b9aed42680de3b3bb359a19cd4a48f57 Mon Sep 17 00:00:00 2001 From: Ganesh Kumar Date: Sat, 21 May 2011 13:55:52 +0530 Subject: ActionMailer deliver method Documentation corrected Ticket #761 --- activemodel/lib/active_model/observing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel') diff --git a/activemodel/lib/active_model/observing.rb b/activemodel/lib/active_model/observing.rb index b94ad4bb9b..d48f2e8a1f 100644 --- a/activemodel/lib/active_model/observing.rb +++ b/activemodel/lib/active_model/observing.rb @@ -125,7 +125,7 @@ module ActiveModel # # class CommentObserver < ActiveModel::Observer # def after_save(comment) - # Notifications.deliver_comment("admin@do.com", "New comment was posted", comment) + # Notifications.comment("admin@do.com", "New comment was posted", comment).deliver # end # end # -- cgit v1.2.3