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
singularizebeforeclassifyis 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,classifyshould only be called on a plural form. Thecamelizemethod 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
singularizeare not necessarily safe: