version 1.0

This commit is contained in:
peng 2016-09-10 14:53:01 +08:00
parent 3b5247969d
commit f701dd2830
5 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
if defined?(WillPaginate)
module WillPaginate
module ActiveRecord
module RelationMethods
def per(value = nil) per_page(value) end
def total_count() count end
end
end
module CollectionMethods
alias_method :num_pages, :total_pages
end
end
end

BIN
lib/screenshot1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

BIN
lib/screenshot2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

BIN
lib/screenshot3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

BIN
lib/screenshot4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 KiB