My understanding is that calling singularize before classify is redundant and can lead to problems with singular forms that end with "s". See http://apidock.com/rails/ActiveSupport/Inflector/classify and http://apidock.com/rails/ActiveSupport/Inflector/camelize. To be safe, classify should only be called on a plural form. The camelize method can be called on either and will return a result with the same grammatical number (i.e. singular or plural). Of note, the source for classify (at least in 3.2.8) is:
My understanding is that calling
singularize
beforeclassify
is redundant and can lead to problems with singular forms that end with "s". See http://apidock.com/rails/ActiveSupport/Inflector/classify and http://apidock.com/rails/ActiveSupport/Inflector/camelize. To be safe,classify
should only be called on a plural form. Thecamelize
method can be called on either and will return a result with the same grammatical number (i.e. singular or plural). Of note, the source forclassify
(at least in 3.2.8) is:Repeated calls to
singularize
are not necessarily safe: