HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
Correctly apply inflection rules on uncountable multi-word strings.
Currently, apply_inflections does not take into account that the input might be a multi-word string separated by underscore. (tableize etc relies on this behavior to work correctly.) This bug affects only uncountable multi-word strings separated by underscores: "funky jeans".singularize # => "funky jeans" "client information".pluralize # => "client information" "funky_jeans".singularize # => "funky_jean" "client_information".pluralize # => "client_informations" It's also worth pointing out that "funky_jeans".singularize used to work correctly before 9b4622a, which was merged almost 2 years ago so this is essentially broken since Rails 3. On the other hand, it appears that "client_information".pluralize has always been broken, so this does change the behavior of tableize and could potentially break some older apps out there. Closes #7132.
- Loading branch information...
Showing with 4 additions and 1 deletion.