Skip to content

Commit 0eba66d

Browse files
authored
Merge 38e2d4c into dabd8b3
2 parents dabd8b3 + 38e2d4c commit 0eba66d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/active_admin/resource_controller/decorators.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def self.wrap(decorator)
6767
def self.wrap!(parent, name)
6868
::Class.new parent do
6969
delegate :reorder, :page, :current_page, :total_pages, :limit_value,
70-
:total_count, :total_pages, :to_key, :group_values, :except,
70+
:total_count, :offset, :to_key, :group_values, :except,
7171
:find_each, :ransack
7272

7373
define_singleton_method(:name) { name }

lib/active_admin/views/components/paginated_collection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def build_pagination
9696
options[:params] = @params if @params
9797
options[:param_name] = @param_name if @param_name
9898

99-
if !@display_total && collection.respond_to?(:offset)
99+
if !@display_total
100100
# The #paginate method in kaminari will query the resource with a
101101
# count(*) to determine how many pages there should be unless
102102
# you pass in the :total_pages option. We issue a query to determine

0 commit comments

Comments
 (0)