Skip to content

Commit

Permalink
Merge pull request #1180 from Karunakar/documentation_change
Browse files Browse the repository at this point in the history
Documentation Error Fixed for ticket #839
  • Loading branch information
fxn committed May 21, 2011
2 parents f62aba7 + 0a15928 commit eb02579
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/observing.rb
Expand Up @@ -125,7 +125,7 @@ def notify_observers(method)
# #
# class CommentObserver < ActiveModel::Observer # class CommentObserver < ActiveModel::Observer
# def after_save(comment) # 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
# end # end
# #
Expand Down
16 changes: 13 additions & 3 deletions activerecord/lib/active_record/base.rb
Expand Up @@ -577,15 +577,25 @@ def serialize(attr_name, class_name = Object)
# #
# ==== Examples # ==== Examples
# #
# class Invoice < ActiveRecord::Base; end; # class Invoice < ActiveRecord::Base
# end
#
# file class table_name # file class table_name
# invoice.rb Invoice invoices # invoice.rb Invoice invoices
# #
# class Invoice < ActiveRecord::Base; class Lineitem < ActiveRecord::Base; end; end; # class Invoice < ActiveRecord::Base
# class Lineitem < ActiveRecord::Base
# end
# end
#
# file class table_name # file class table_name
# invoice.rb Invoice::Lineitem invoice_lineitems # invoice.rb Invoice::Lineitem invoice_lineitems
# #
# module Invoice; class Lineitem < ActiveRecord::Base; end; end; # module Invoice
# class Lineitem < ActiveRecord::Base
# end
# end
#
# file class table_name # file class table_name
# invoice/lineitem.rb Invoice::Lineitem lineitems # invoice/lineitem.rb Invoice::Lineitem lineitems
# #
Expand Down
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/observer.rb
Expand Up @@ -11,7 +11,7 @@ module ActiveRecord
# #
# class CommentObserver < ActiveRecord::Observer # class CommentObserver < ActiveRecord::Observer
# def after_save(comment) # 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
# end # end
# #
Expand Down

0 comments on commit eb02579

Please sign in to comment.