Skip to content

Commit 0c0d4f2

Browse files
committed
Reuse existing method
1 parent b5e7806 commit 0c0d4f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ajax-datatables-rails/datatable/datatable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def offset
6666
end
6767

6868
def page
69-
(options[:start].to_i / per_page) + 1
69+
(offset / per_page) + 1
7070
end
7171

7272
def get_param(param)

0 commit comments

Comments
 (0)