Isnt rails pluralzation recursive?


#1

Hi
0.13.1 evaluated ‘status’.pluralize as status
0.14.2 ecaluates the same as ‘statuses’
so i fixed by
Inflector.inflections do |inflect|
inflect.uncountable %w( status )
end
now both ‘status’.pluralize and ‘status’.singularize result in ‘status’
unfortunately my schema involves another table called
‘status_definition’. to my surprise “status_definition”.pluralize was
evaluated as “statuses_definition”. how come it isnt a recursive
algorithm where the plural of status_definition warrants the evaluation
of the plural of status ??
shodhan


#2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Dec 1, 2005, at 4:55 AM, shodhan wrote:

was evaluated as “statuses_definition”. how come it isnt a
recursive algorithm where the plural of status_definition warrants
the evaluation of the plural of status ??

This is a bug fixed in http://dev.rubyonrails.org/ticket/2758

jeremy

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)

iD8DBQFDj1N8AQHALep9HFYRAt1cAKDQNefvzFSMCDv76F2G46phWQf/FQCdHhJQ
0gyv0/rH3axggJRl3Bx6EeE=
=KH/7
-----END PGP SIGNATURE-----