|
|
|
|
|
by lfittl
2401 days ago
|
|
(not the author, but I've discussed this with him previously) This is a problem with `order` in Active Record in particular, where you can't pass in a bind variable the same way you'd expect it to work with `where`. Therefore the slightly less elegant version that goes through quote_string. You could use bind variables by going directly to the pg driver, but I think there is no quick shorthand to do this in Active Record/Arel. |
|