Permalink
Browse files

Fix a few more typos in 2.2 release notes.

  • Loading branch information...
1 parent 14fb65c commit 8afe33b1475deb86714242769c2bc5db5e1ddc22 @ffmike ffmike committed Oct 25, 2008
Showing with 303 additions and 303 deletions.
  1. +299 −299 railties/doc/guides/html/2_2_release_notes.html
  2. +4 −4 railties/doc/guides/source/2_2_release_notes.txt
Oops, something went wrong.
@@ -323,23 +323,23 @@ If you delegate behavior from one class to another, you can now specify a prefix
[source, ruby]
-------------------------------------------------------
-class Vendor << ActiveRecord::Base
+class Vendor < ActiveRecord::Base
has_one :account
delegate :email, :password, :to => :account, :prefix => true
end
-------------------------------------------------------
-This will produce delegated methods +vendor.account_email+ and +vendor.account_password+. You can also specify a custom prefix:
+This will produce delegated methods +vendor#account_email+ and +vendor#account_password+. You can also specify a custom prefix:
[source, ruby]
-------------------------------------------------------
-class Vendor << ActiveRecord::Base
+class Vendor < ActiveRecord::Base
has_one :account
delegate :email, :password, :to => :account, :prefix => :owner
end
-------------------------------------------------------
-This will produce delegated methods +vendor.owner_email+ and +vendor.owner_password+.
+This will produce delegated methods +vendor#owner_email+ and +vendor#owner_password+.
Lead Contributor: link:http://workingwithrails.com/person/5830-daniel-schierbeck[Daniel Schierbeck]

0 comments on commit 8afe33b

Please sign in to comment.