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

Remove the redundant argument of warn #852

Merged
merged 1 commit into from Jan 18, 2017
Merged

Conversation

tsuwatch
Copy link
Contributor

@tsuwatch tsuwatch commented Jan 18, 2017

When I use max_pages_per in Rails4, warn raise an error.

In Rails4, callstack is caller , and it is given by default. https://github.com/rails/rails/blob/4-0-stable/activesupport/lib/active_support/deprecation/reporting.rb#L17
In Rails5, caller_locations(2) is given by default, too. https://github.com/rails/rails/blob/5-0-stable/activesupport/lib/active_support/deprecation/reporting.rb#L19

@amatsuda
Copy link
Member

@tsuwatch Makes sense. Thanks!

@amatsuda amatsuda merged commit 8bc8bb2 into kaminari:master Jan 18, 2017
@tsuwatch
Copy link
Contributor Author

@amatsuda Thanks! 😆

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

2 participants