aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/README.rdoc
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2010-12-18 01:11:58 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2010-12-18 01:11:58 +0530
commit3145c8afd19dc495930ccc3cdfb0d4b3ac7c370a (patch)
treecec55eb6213ed2516e1fbeff6c939eb9d2b631e2 /activerecord/README.rdoc
parentd421b16edcd505a0b725506777c5ba71d6db6331 (diff)
downloadrails-3145c8afd19dc495930ccc3cdfb0d4b3ac7c370a.tar.gz
rails-3145c8afd19dc495930ccc3cdfb0d4b3ac7c370a.tar.bz2
rails-3145c8afd19dc495930ccc3cdfb0d4b3ac7c370a.zip
changes in examples - reflect new mailer api and mysql2 adapter
Diffstat (limited to 'activerecord/README.rdoc')
-rw-r--r--activerecord/README.rdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/README.rdoc b/activerecord/README.rdoc
index 101a595ecd..91a23da8ad 100644
--- a/activerecord/README.rdoc
+++ b/activerecord/README.rdoc
@@ -84,7 +84,7 @@ A short rundown of some of the major features:
class CommentObserver < ActiveRecord::Observer
def after_create(comment) # is called just after Comment#save
- Notifications.deliver_new_comment("david@loudthinking.com", comment)
+ CommentMailer.new_comment_email("david@loudthinking.com", comment)
end
end
@@ -128,7 +128,7 @@ A short rundown of some of the major features:
# connect to MySQL with authentication
ActiveRecord::Base.establish_connection(
- :adapter => "mysql",
+ :adapter => "mysql2",
:host => "localhost",
:username => "me",
:password => "secret",