Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move pagination into private method for overriding #2216

Merged
merged 1 commit into from
Jul 21, 2022

Conversation

dwilkie
Copy link
Contributor

@dwilkie dwilkie commented Jun 22, 2022

Allows you to do this:

module Admin
  class ApplicationController < Administrate::ApplicationController

    private

    def paginate_resources(resources)
      super.without_count
    end
  end
end

@pablobm
Copy link
Collaborator

pablobm commented Jul 21, 2022

I'm generally in favour of moving those things to private methods. So I'm in! 👍 Thank you.

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.

2 participants