Maintain subclasses of Hash when calling Hash#slice #250
This patch corrects i18n's implementation of
In the current implementation, it creates a new hash, copies the selected key/value pairs into it, and returns it. This causes the returned value to be a different class, in the case where the original object was a subclass of Hash. This behavior is problematic when using something like
I discovered this in another library that returns
@jimmycuadra is this library you comment not using Rails at all? Because if it is, it should be picking Rails' version over I18n I believe.
Anyway, people relying on I18n's core extensions make me really sad. Maybe I'll deprecate this on the future.