Permalink
Browse files

will paginate support

Signed-off-by: Sakchai Siripanyawuth <sakchai@artellectual.com>
  • Loading branch information...
1 parent b86c228 commit 9329bf252df7e1c4fa975817ac360f7e43052f6f @zacksiri zacksiri committed Nov 16, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 app/views/layouts/application.datatables.jsonify
View
4 app/views/layouts/application.datatables.jsonify
@@ -23,6 +23,10 @@ instance_variables.each do |vn|
total_entries = v.total_count
current_page_entries = v.size
break
+ elsif v.respond_to?('total_entries')
+ total_entries = v.total_entries
+ current_page_entries = v.size
+ break
end
end

0 comments on commit 9329bf2

Please sign in to comment.