I wanna have an Image_Model which defines x, y, width, height, name,…
This model should be embedded_in many other Models.
Example:
User embeds_many images
Product embeds_many images
is this possible or do I have it like this:
User embeds_many user_images
Product embeds_many product_images
What is the best way to go?
many thanks in advance
Its possible to do
its better to go with this only as you don’t have to remember both the association names when you are querying on image.