Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (17 sloc) 860 Bytes
Added only_pks named scope (and pks class method)
Renamed metaclass to eigenclass to avoid conflict w/ Rails' method of the same name
* More flexible @ordered@ syntax (by jney -
* Fixed except named scope not correctly determining its base class
(as reported by Marcus Crafter:
* Added except scope from danielmorrison (
Article.except(1, 2, 3) # Get all articles whose id is NOT 1, 2 or 3
Article.except(@article) # Get all articles except the given one
Article.except(Article.published) # Get all UN-published articles (poor example
# since it executes full "published" query first)
* Initial release with limit, with (eager loading) and ordered scopes.
Something went wrong with that request. Please try again.