This project is archived and is in readonly mode.
ActiveSupport::Inflector, wrong singular for "process"
Reported by Tero Tilus | April 12th, 2011 @ 12:58 PM
You'd expect foo.singularize == foo.singularize.singularize for all strings foo. Singular for "process" should then imo be "process", not "proces" as it is.
$ rails console
> Rails.version
=> "3.0.5"
> "process".singularize
=> "proces"
My specific problem was
> 'ObjectProcess'.singularize
=> 'ObjectProces'
And my fix
ActiveSupport::Inflector.inflections do |inflect|
...
inflect.singular /^(.*process)$/i, '\1'
end
I don't know if this breaks anything else.
Comments and changes to this ticket
-
laptopbatteries April 16th, 2011 @ 03:08 AM
rolex watches are very common in our Audemars Piguet Replicas lifes, there are quite several well known wrist watches brands, the majority Gucci Replicas of them are Swiss bands, Panerai Replicas ,and it is Omega Replicas unlikely, unless the replica watches 's owner is filthy rich and equally careless replica breitling with his, Even the highest quality, Some replica omega are believed to be to acquire luxury wrist that are Replica Concord founded of gold or platinum or other high priced materials. placing on these wrist fake rolex certainly will make us stand out from other Swiss Replica Watch people.Does everyone can afford these genuine, replica tag heuer Taking your or replica watch ? When should expensive replica watch uk , before you take your precious?
-
Matthew Daubert April 21st, 2011 @ 03:12 PM
The Rails core team has stated patches for the inflections library will not be accepted in order to avoid breaking legacy applications which may be relying on errant inflections. If you discover an incorrect inflection and require it for your application, you’ll need to correct it yourself (explained below).
-
Matthew Daubert April 21st, 2011 @ 03:13 PM
My previous comment was truncated. Tero - I suggest changing your application's inflections file as suggested by the API documentation (quoted above).
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
- Nobody is watching this ticket.