"ToSM" Any ideas why this is happening?" /> "ToSM" Any ideas why this is happening?" /> "ToSM" Any ideas why this is happening?"/>

Rails Inflector classifies incorrectly

158 Views Asked by At

Trying to classify the following cuts off the last letter.

"ToSMS".classify
=> "ToSM"

Any ideas why this is happening?

1

There are 1 best solutions below

1
Artem Kalinchuk On BEST ANSWER

Figured out why it was doing that. It treated SMS as a plural of SM. Added the following to the inflectors:

inflect.irregular 'SMS', 'SMS'