# How to express this architecture

**URL:** <https://www.ruby-forum.com/t/how-to-express-this-architecture/130651>\
**Category:** Rails\
**Created:** [March 1, 2008, 9:07am UTC](https://www.ruby-forum.com/t/how-to-express-this-architecture/130651 "2008-03-01T09:07:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![uvsoft](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/7bcc69/32.png) [@uvsoft](https://www.ruby-forum.com/u/uvsoft)\
**Post date:** [March 1, 2008, 9:07am UTC](https://www.ruby-forum.com/t/how-to-express-this-architecture/130651/1 "2008-03-01T09:07:16Z")

</div>

Hi,

There are several models, an instance of one model can own (be an  
owner) another instance (that is a possession, property) of the same  
or another model. How to express this architecture, so that I can  
easily access to all owners or all properties of exact model of some  
instance:

an\_instance.owners.owners\_only\_with\_some\_model  
an\_instance.properties.properties\_only\_with\_some\_model

or

an\_instance.owners\_only\_with\_some\_model  
an\_instance.properties\_only\_with\_some\_model

And it’d be great if both owners\_only\_with\_some\_model and  
properties\_only\_with\_some\_model were proxies.

Thanks.
