FIX: prevents exception when overriding models attribute (PR #12888)

eg: overriding activerecord.attributes.topic.category_id would currently lead to an exception when the key is used.

Our code currently thinks that the last part of the key is dedicated to pluralization.


Thanks for doing the hard work of finding a test case. I created a simpler fix in FIX: Looking up translation overrides by symbol failed when `count` is used by gschlager · Pull Request #12896 · discourse/discourse · GitHub.

1 Like