Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Underscore Helper messes up on ID

#8

current:

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

should be:

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

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

State: new
Milestone: none
Assigned to: Dan Kubb (dkubb) Dan Kubb (dkubb)

Activity

  1. Dan Kubb (dkubb)
    Dan Kubb (dkubb)

    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.

    March 23rd, 2009 @ 06:46 PM

  2. Dan Kubb (dkubb)
    Dan Kubb (dkubb)

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

    March 23rd, 2009 @ 06:46 PM

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.