This project is archived and is in readonly mode.

#2602 ✓resolved
Emilio Tagua

Improve reverse_sql_order method

Reported by Emilio Tagua | May 2nd, 2009 @ 06:04 PM | in 2.x

reverse_sql_order method in AR::Base, defines an unnecessary local variable, but most important is the last elsif which is redundant since if the first and second ifs doesn't match the expression the third one always will.

Comments and changes to this ticket

Create your profile

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

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages