Skip to content
Browse files

changes in examples - reflect new mailer api and mysql2 adapter

  • Loading branch information...
1 parent d421b16 commit 3145c8afd19dc495930ccc3cdfb0d4b3ac7c370a @vijaydev vijaydev committed Dec 18, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/README.rdoc
View
4 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",

0 comments on commit 3145c8a

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