diff options
author | Xavier Noria <fxn@hashref.com> | 2011-05-21 10:39:28 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-05-21 10:39:28 -0700 |
commit | eb0257944ef7c9c0f7658b934a2f767497982909 (patch) | |
tree | 61cddc7bbd996eb51a37624ae3e8b4cf07ffa933 /activerecord/lib/active_record | |
parent | f62aba74ef5105a5749f7764dcddd4b1d344e812 (diff) | |
parent | 0a15928f0658c91b197ef15c16580b9abac39ced (diff) | |
download | rails-eb0257944ef7c9c0f7658b934a2f767497982909.tar.gz rails-eb0257944ef7c9c0f7658b934a2f767497982909.tar.bz2 rails-eb0257944ef7c9c0f7658b934a2f767497982909.zip |
Merge pull request #1180 from Karunakar/documentation_change
Documentation Error Fixed for ticket #839
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 16 | ||||
-rw-r--r-- | activerecord/lib/active_record/observer.rb | 2 |
2 files changed, 14 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 92e525a361..19a7965429 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -577,15 +577,25 @@ module ActiveRecord #:nodoc: # # ==== Examples # - # class Invoice < ActiveRecord::Base; end; + # class Invoice < ActiveRecord::Base + # end + # # file class table_name # 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 # 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 # invoice/lineitem.rb Invoice::Lineitem lineitems # diff --git a/activerecord/lib/active_record/observer.rb b/activerecord/lib/active_record/observer.rb index c723436330..5a5351b517 100644 --- a/activerecord/lib/active_record/observer.rb +++ b/activerecord/lib/active_record/observer.rb @@ -11,7 +11,7 @@ module ActiveRecord # # class CommentObserver < ActiveRecord::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 # |