mixonic/ranked-model — pull request #24 by mixonic (2012-06-23 23:39:41+00:00)
Title: A similar fix to the bugs found in #23 from @quake

Rearrange ranks needs to use finder. The rank scope shouldn't use `.column` and `arel_table`.

@quake, this is similar but without dropping the exclusion of the current object from rearrange queries. Lookin' kosher to you? It passes on 1.9.3 with Rails 3.0.3, 3.1 and 3.2.6.

At least in older ActiveRecord, just passing the string doesn't pass the table name to the order statement. That can be a problem if you use `.rank` and a join.

(sorry for the delay, I've been ill)