GitLab compatibility with Ruby 2.4

I noticed we started using yield_self in the code base. This is the method from Ruby 2.5 and I believe it makes our application incompatible with Ruby 2.4. However I could not find anywhere us announcing that we don't support Ruby 2.4 anymore.

Few examples of using yield_self in the code:

Edited by Dmytro Zaporozhets (DZ)