Skip to content
This repository
Browse code

The MailingAddress is good design, but it adds some noise to the quer…

…ying guide b/c it is not referenced anywhere.
  • Loading branch information...
commit c7d975708f7a2ad1eaf8bf65336843269ba08b3d 1 parent 54b5b06
Evan Farrar authored May 09, 2009
6  railties/guides/source/active_record_querying.textile
Source Rendered
@@ -22,7 +22,6 @@ TIP: All of the following models uses +id+ as the primary key, unless specified
22 22
 <ruby>
23 23
 class Client < ActiveRecord::Base
24 24
   has_one :address
25  
-  has_one :mailing_address
26 25
   has_many :orders
27 26
   has_and_belongs_to_many :roles
28 27
 end
@@ -35,11 +34,6 @@ end
35 34
 </ruby>
36 35
 
37 36
 <ruby>
38  
-class MailingAddress < Address
39  
-end
40  
-</ruby>
41  
-
42  
-<ruby>
43 37
 class Order < ActiveRecord::Base
44 38
   belongs_to :client, :counter_cache => true
45 39
 end

0 notes on commit c7d9757

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