#8 new
Jacques Crocker

Underscore Helper messes up on ID

Reported by Jacques Crocker | March 23rd, 2009 @ 06:01 PM

current:

Extlib::Inflection.underscore("TransactionID") #=> "transaction_i_d"

should be:

Extlib::Inflection.underscore("TransactionID") #=> "transaction_id"

Comments and changes to this ticket

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) March 23rd, 2009 @ 06:46 PM

    Jacques: Would you mind making a failing spec and sending a pull request or patch for this feature?

    It looks like the original reason for the Extlib version was performance. Of course, fast and incorrect is useless, so I'd be open to either adopting the AS version or tweaking the Extlib version to work correctly. The latter would be preferable, provided the performance was sufficiently better.

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) March 23rd, 2009 @ 06:46 PM

    BTW it looks like there are benchmarks in extlib/benchmarks for this.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Lightweight fast Ruby core extensions library for DataMapper and Merb.

People watching this ticket

Pages