RubyFlow The Ruby and Rails community linklog

NamedScope For Those Left Behind

NamedScope For Those Left Behind: This is not simple hack of named scope like you might find in WillPaginate. This is a fully backported and tested version of NamedScope that will work on rails 1.2.6 or 2.0.4. The most important part of this plugin is that it is TESTED. In fact all the test are Shoulda/FactoryGirl ports of the tests currently found in rails 2.1.1.

This plugin includes backported code for the ActiveRecord class methods that work in conjunction with NamedScope such as first, last and all. This plugin also includes ActiveRecord.attribute_condition which allows you to use named scopes as conditions in other finder methods.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in