public
Description: A collection of utilitarian named scopes for your ActiveRecord models.
Homepage:
Clone URL: git://github.com/yfactorial/utility_scopes.git
utility_scopes / CHANGELOG
100644 21 lines (13 sloc) 0.709 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0.2.2
 
* More flexible @ordered@ syntax (by jney - http://github.com/jney)
 
0.2.1
 
* Fixed except named scope not correctly determining its base class
  (as reported by Marcus Crafter: http://github.com/crafterm)
 
0.2.0
 
* Added except scope from danielmorrison (http://github.com/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)
 
0.1.0
 
* Initial release with limit, with (eager loading) and ordered scopes.