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

Spike on deprecating #current_page method #990

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Spike on deprecating #current_page method #990

wants to merge 1 commit into from

Conversation

yuki24
Copy link
Member

@yuki24 yuki24 commented Apr 12, 2019

addresses #909, #925 and #989

I could finally took the time to look into this, and it doesn't seem to be very difficult to deprecate the #current_page method. The rationale here is that it always returns the same value as params[:page] (or whatever is specified through the :param_name option) and there is no need to re-compute the current page.

  • Add support for a nested :param_name option (e.g. needs to look at params[:user][:page] when the :param_name is user[page])
  • Look for gems that depend on scope#current_page (ActiveAdmin)

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.

None yet

1 participant