Add equivalent of prepend_if_ee for the prepend_entity methods
We added the prepend_if_ee
(and other) methods, but forgot to do so for the prepend_entity
methods found here (and possibly elsewhere): https://gitlab.com/gitlab-org/gitlab-ee/blob/dd692733/lib/api/entities.rb#L1709
The challenge here is that the prepend_entity_if_ee
methods would not be available in CE, since the EE module that defines them is not present. This means we probably have to make the entity prepending method available on Object
, instead of defining it in a separate module.