On Wednesday, November 7, 2018 at 3:03:51 AM UTC-8, Alexander Popov wrote:
>
> Hello!
>
> Sequel has auto-model name guessing, like `Artist` for `many_to_one 
> :artist`, but what about acronyms (abbreviations)?
>
> It'd be nice if Sequel will recognize `many_to_one :http_session` as 
> `HTTPSession`, for example, or `:order_utm` as `OrderUTM`.
>

This is fairly easy to handle now:

  many_to_one :http_session, :class=>:HTTPSession
  many_to_one :order_utm, :class=>:OrderUTM

Sequel uses inflection methods defined on String in preference to its 
internal inflector, so if you want this support, you probably should just 
use a different inflector and make sure the appropriate String inflection 
methods are defined to use it.  I don't really want to add more features to 
Sequel's inflection support.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to