I have a scenario where I want to save a author image and book image to assets table…
I am using a polymorphic association.
And author_name is inside the books table.
now when I save the image the imageable_type says “Book” for both. And off-course it’s a correct behavior, but I am just trying to figure out is there any way where I can save author image and imageable_type should have “AuthorImage” and it should call the same Book model
Solution: Other solution I am thinking to separate the Author from book and have it in another table.
Please it will be really helpful if someone can help me out.