ActiveSupport::Inflector#irregular does not honor singular form passed in when singular form ends in s #9941

Closed
pivotal-cloudplanner opened this Issue Mar 26, 2013 · 2 comments

Comments

Projects
None yet
3 participants

Example:

ActiveSupport::Inflector.inflections do |inflect|
  inflect.irregular "octopus", "octopi"
end

"octopus".singularize should return "octopus", but doesn't; it instead returns "octopu".

The workaround:

ActiveSupport::Inflector.inflections do |inflect|
  inflect.irregular "octopus", "octopi"
  inflect.singular "octopus", "octopus"
end
Member

senny commented Mar 27, 2013

/cc @fxn

Owner

fxn commented Mar 27, 2013

Thanks, this was fixed in ef4ac7a.

@fxn fxn closed this Mar 27, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment