I’m having trouble setting this polymorphic association
say that i have this setup
has_one :face_photo, as: :imageable, class_name: “Image”, dependent:
has_one :body_photo, as: :imageable, class_name: “Image”, dependent:
belongs_to :imageable, polymorphic: true
Both face_photo and body_photo are being saved with the images table
the imageable_type == “User”, so when i try to get body_photo from a
it brings me its face_photo.
Is there a way i can specify the type that goes in the imageable type so
can bring me the right image?