So, I have 2 models A and B that share 5 common attributes and all other
attributes are different.  So I wanted to extract these 5 out into one
common table and use has_one, belongs_to to knit it back together.  So
now there are 3 tables with 1 having the shared properties, we'll call
this table C.

Table A
id
dollar_amount

Table B
id
quantity_on_hand

Table C
id
version

My question is, I want to access attributes from table C like they are
in table A, such as:

@a = a.new
a.version

and NOT
a.c.version

Is my only option to use method_missing?

Anyone got any ideas?

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to