Skip to content

Deprecation warning fix for Kaminari - #4458

Merged
timoschilling merged 1 commit into
activeadmin:masterfrom
benbristow:master
Jun 27, 2016
Merged

timoschilling merged 1 commit into
activeadmin:masterfrom
benbristow:master

Conversation

@benbristow

Copy link
Copy Markdown
Contributor

No description provided.

@timoschilling

Copy link
Copy Markdown
Member

What effect does this change have to the required kaminari version / which is the min version which supports total_pages?

@sublimecoder

sublimecoder commented Jun 9, 2016 •

Copy link
Copy Markdown

@timoschilling looks like the changes were introduced in Kaminari 0.14.0 So the earliest supported version should be that one.

https://github.com/amatsuda/kaminari/blob/master/CHANGELOG.rdoc#0140

@timoschilling

Copy link
Copy Markdown
Member

Ok, we are already limited to Kaminari 0.15

it "should not show the total item counts" do
expect(collection).not_to receive(:num_pages)
expect(collection).not_to receive(:total_pages)
expect(collection).not_to receive(:total_pages)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this row is doubled

@sublimecoder

Copy link
Copy Markdown

@benbristow Can you fix the line duplication so we can get this merged in to fix the deprecation warnings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants