This plugin just for rails version 2.3.x with named scope module. Include name scope methods: where, joins, includes, selects, order, limit, offset, group, having
gem install relation_scope git clone git://github.com/liangwenke/relation_scope.git
User.order('created_at DESC').where(:name => 'test').limit(2) User.joins(:roles).selects('distinct users.*')
Copyright © 2011 [liangwenke.com@gmail.com], released under the MIT license