You can tell if a ray has a hook by taking an x-ray of it (probably not practical for you). I feel strongly that the ideas mentioned are not accurate.
I've been diving is saltwater and see hooks hanging out of the sides of fishes mouth (so obviously exposed to saltwater) that have obviously been there for a while as they had algae growing on it. Try a hook in straight water and see how long it takes to dissolve.
Now, consider how long you can leave a fw ray in saltwater, and how high of a salinity level it will be. Do you really think it will magically melt away? If the ray could 'cough it up' it would have. Now consider that the hook is probably in the rays gut- how much saltwater do you think would reach there?
Thinking hooks will quickly dissolve from inside a fish is a common misconception. Studies have been done in game fish that showed that they stayed there for the study length, which I believe was years.
The good new is that if it is in the gut and hasn't ruptured anything the ray may do fine with it (if this is indeed the problem). The hook will either pass, or the body will try to wall it off. Chances are that, if you consider how long it took for that ray to be collected to right now, it probably hasn't punctured the bowel or it would be dead already. It might discourage it from eating though. I have had rays with hooks that have started to eat.
Might turn out fine. Good luck.