version 1.0
This commit is contained in:
parent
3b5247969d
commit
f701dd2830
|
@ -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
|
Binary file not shown.
After Width: | Height: | Size: 198 KiB |
Binary file not shown.
After Width: | Height: | Size: 159 KiB |
Binary file not shown.
After Width: | Height: | Size: 182 KiB |
Binary file not shown.
After Width: | Height: | Size: 241 KiB |
Loading…
Reference in New Issue