Commit graph

4 commits

Author SHA1 Message Date
GitLab Bot
926711e454 Add latest changes from gitlab-org/gitlab@master 2021-06-02 00:09:56 +00:00
Jasper Maes
56296f1eda Remove rails4 specific code 2018-12-16 10:48:41 +01:00
gfyoung
15b878e27e Enable more frozen string in app/models/**/*.rb
Partially addresses #47424.
2018-08-07 00:37:36 -07:00
Jan Provaznik
0665a8f730 Enable mapping to nil in enums
Enum in Rails 5 does not map nil values - IOW nil value remains nil,
even if there is a key with nil value in the enum definition.

This commit overrides the underlying Enum methods so nil value is
still mapped. This solution is far from being ideal: it uses dynamic
definition of methods which introduces more magic/confusion
into the codebase.

It would be better to get rid of the nil value in enums.
2018-06-06 20:46:54 +02:00