As @BoberMod pointed out in https://github.com/DmitryTsepelev/store_model/pull/135#discussion_r1124487764, that PR introduces a regression in cases where the name of an enum is already pluralized; specifically, the instance method to access the enum value is superseded with the instance method to access the enum mapping.
Since there's already a class method to access the enum mapping, and the precedent (in ActiveRecord) doesn't set an instance method to access the enum mapping anyway, this PR removes the instance method to access the enum mapping.
I hope the diff in docs/enums.md and the specs sufficiently illustrate the practical difference!
As @BoberMod pointed out in https://github.com/DmitryTsepelev/store_model/pull/135#discussion_r1124487764, that PR introduces a regression in cases where the name of an enum is already pluralized; specifically, the instance method to access the enum value is superseded with the instance method to access the enum mapping.
Since there's already a class method to access the enum mapping, and the precedent (in ActiveRecord) doesn't set an instance method to access the enum mapping anyway, this PR removes the instance method to access the enum mapping.
I hope the diff in
docs/enums.md
and the specs sufficiently illustrate the practical difference!