public
Description: Natural-looking Finder Queries for ActiveRecord
Homepage: http://www.thoughtbot.com/projects/squirrel
Clone URL: git://github.com/thoughtbot/squirrel.git
Added Rails-2.1-compatable will_paginate compatability.
jyurek (author)
Fri Jun 20 13:53:24 -0700 2008
commit  4a6efb445a22686a5d4d60fbb16ab96418c420a1
tree    8579866f815c51299bcf7ff64d6157daf568ad8c
parent  3f3f28f76358f218a3ac28c2b8e75327b93a9561
...
34
35
36
 
 
37
38
39
...
34
35
36
37
38
39
40
41
0
@@ -34,6 +34,8 @@ module Squirrel
0
       pages.last
0
     end
0
 
0
+ alias_method :total_pages, :page_count
0
+
0
     # Returns the current_page - 1, or nil if this is the first page.
0
     def previous_page
0
       current_page > 1 ? (current_page - 1) : nil

Comments

    No one has commented yet.