https://github.com/metaskills/named_scope
A thorough backport of NamedScope that can be used with Rails 1.2.6 and 2.0.4
https://github.com/metaskills/named_scope
Last synced: 8 months ago
JSON representation
A thorough backport of NamedScope that can be used with Rails 1.2.6 and 2.0.4
- Host: GitHub
- URL: https://github.com/metaskills/named_scope
- Owner: metaskills
- License: mit
- Created: 2008-10-03T13:54:39.000Z (about 17 years ago)
- Default Branch: master
- Last Pushed: 2009-02-27T13:45:27.000Z (over 16 years ago)
- Last Synced: 2025-02-15T08:13:21.709Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 844 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- Changelog: CHANGELOG
- License: MIT-LICENSE
Awesome Lists containing this project
README
== 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.=== Extra Benefits
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.=== Installation & Usage
From your project's RAILS_ROOT, run:
./script/plugin install git://github.com/metaskills/named_scope.git
Copyright (c) 2008 Action Moniker LLC., http://www.actionmoniker.com/
Released under the MIT license.