Use conditional on exposing API rather than comments
@zj Mentioned that we could do this at https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1942#note_30151727
expose :prop, using: Entity if Gitlab.ee?
instead of having:
# EE-only
expose :prop, using: Entity
and I think that's a great idea, as this should be loaded at load time, rather than runtime, it shouldn't hurt the performance.
And of course the best thing is that it is not going to cause conflicts as we might have now. The downside might be that then people need to put this on CE, while making the other features and related code on EE, making development much harder and tedious. However this also has some advantages that people would now be very aware that things could be conflicting like crazy if we're not careful enough.
@rymai @rspeicher @vsizov What do you think?