Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
pivotal-cloudplanner opened this Issue · 2 comments

3 participants

@pivotal-cloudplanner

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
@senny
Owner

/cc @fxn

@fxn
Owner

Thanks, this was fixed in ef4ac7a.

@fxn fxn closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.