On 13 July 2015, after a further two full seasons with Valencia B, Ruiz was loaned to Granada CF in a season-long deal.[6] He made his debut in La Liga on 24 August, being sent off in the 56th minute of an eventual 1–3 home loss to SD Eibar.[7]
After being diagnosed with aplastic anemia, Ruiz was inactive for more than one year.[8] On 10 January 2018, he signed a one-and-a-half-year contract with RCD Mallorca.[9]
On 7 February 2019, Valencia activated their buy-back clause on Ruiz's contract; the player agreed a deal until June 2023, remaining on loan at Mallorca until the end of the season.[10] On 2 September, however, he joined Deportivo de La Coruña of the second division for three years.[11]