Yeah, rays are not elemental but if GM rules they count as some kind elemental energy so that their dmg is halved vs objects then you can abuse it on feats or features which need 'elemental attack' to function.