>
> There are a few ways to handle this.
>
> You could define 'staff' as a collective noun via:
>
> Extlib::Inflection.word 'staff'
>

Also Extlib has methods Inflection.plural_word and
Inflection.singular_word for defining pluralization exceptions. I've
used this for example in -

class Regatta
  include DataMapper::Resource
  Extlib::Inflection.plural_word 'regatta', 'regattas'
...
end

to prevent DM from trying to use regattum.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to