public
Rubygem
Description: Most awesome pagination solution for Ruby
Homepage: http://github.com/mislav/will_paginate/wikis
Clone URL: git://github.com/mislav/will_paginate.git
WP::Finders::Common is now WP::Finders::Base (ditto ViewHelpers::Base)
mislav (author)
Fri May 30 20:14:59 -0700 2008
commit  c1856887318e69daf001f39c642dfda429ff20c9
tree    7863126e77d3e39521d14e3aba6aabc9b2f433ca
parent  ae1d62221af01659d935f6c1a2af1ef72fc480be
...
1
 
2
3
4
...
36
37
38
39
 
40
41
42
...
 
1
2
3
4
...
36
37
38
 
39
40
41
42
0
@@ -1,4 +1,4 @@
0
-require 'will_paginate/finders/common'
0
+require 'will_paginate/finders/base'
0
 require 'active_record'
0
 
0
 module WillPaginate::Finders
0
@@ -36,7 +36,7 @@ module WillPaginate::Finders
0
   # most sense in the current context. Make that obvious to the user, also.
0
   # For perfomance reasons you will also want to add an index to that column.
0
   module ActiveRecord
0
- include WillPaginate::Finders::Common
0
+ include WillPaginate::Finders::Base
0
     
0
     # Wraps +find_by_sql+ by simply adding LIMIT and OFFSET to your SQL string
0
     # based on the params otherwise used by paginating finds: +page+ and
...
1
 
2
3
4
...
6
7
8
9
 
10
11
12
...
 
1
2
3
4
...
6
7
8
 
9
10
11
12
0
@@ -1,4 +1,4 @@
0
-require 'will_paginate/finders/common'
0
+require 'will_paginate/finders/base'
0
 require 'active_resource'
0
 
0
 module WillPaginate::Finders
0
@@ -6,7 +6,7 @@ module WillPaginate::Finders
0
   #
0
   # @posts = Post.paginate :all, :params => { :page => params[:page], :order => 'created_at DESC' }
0
   module ActiveResource
0
- include WillPaginate::Finders::Common
0
+ include WillPaginate::Finders::Base
0
     
0
   protected
0
   
...
1
 
2
3
4
5
6
 
7
8
9
...
 
1
2
3
4
5
 
6
7
8
9
0
@@ -1,9 +1,9 @@
0
-require 'will_paginate/finders/common'
0
+require 'will_paginate/finders/base'
0
 require 'data_mapper'
0
 
0
 module WillPaginate::Finders
0
   module DataMapper
0
- include WillPaginate::Finders::Common
0
+ include WillPaginate::Finders::Base
0
 
0
     protected
0
     
...
1
2
 
3
4
5
...
7
8
9
10
 
11
12
13
...
1
 
2
3
4
5
...
7
8
9
 
10
11
12
13
0
@@ -1,5 +1,5 @@
0
 require 'will_paginate/core_ext'
0
-require 'will_paginate/view_helpers/common'
0
+require 'will_paginate/view_helpers/base'
0
 require 'action_view'
0
 require 'will_paginate/view_helpers/link_renderer'
0
 
0
@@ -7,7 +7,7 @@ module WillPaginate
0
   module ViewHelpers
0
     # ActionView helpers for Rails integration
0
     module ActionView
0
- include WillPaginate::ViewHelpers::Common
0
+ include WillPaginate::ViewHelpers::Base
0
       
0
       def will_paginate(collection = nil, options = {})
0
         options, collection = collection, nil if collection.is_a? Hash
...
1
2
 
3
4
5
 
6
7
8
 
9
10
11
...
1
 
2
3
4
 
5
6
7
 
8
9
10
11
0
@@ -1,11 +1,11 @@
0
 require 'spec_helper'
0
-require 'will_paginate/finders/common'
0
+require 'will_paginate/finders/base'
0
 
0
 class Model
0
- extend WillPaginate::Finders::Common
0
+ extend WillPaginate::Finders::Base
0
 end
0
 
0
-describe WillPaginate::Finders::Common do
0
+describe WillPaginate::Finders::Base do
0
   it "should define default per_page of 30" do
0
     Model.per_page.should == 30
0
   end

Comments

    No one has commented yet.