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 all deprecations from Action Pack #26746

Merged
merged 23 commits into from Oct 10, 2016

Conversation

Projects
None yet
2 participants
@rafaelfranca
Member

rafaelfranca commented Oct 10, 2016

This the first pass through the codebase to remove deprecations. I chose to open a PR per component to avoid conflicts.

I only left one of the deprecations because I'm not entirely sure how we want to deal with them. The deprecation left is the one added in 6520ea5. @pixeltrix can you push the code that remove the deprecated code in a new branch? I can deal with the broken tests after you push it.

I'm planing to merged as soon the tests are green.

rafaelfranca added some commits May 10, 2016

Remove deprecated methods related to controller filters
`skip_action_callback`, `skip_filter`, `before_filter`,
`prepend_before_filter`, `skip_before_filter`,
`append_before_filter`, `around_filter`
`prepend_around_filter`, `skip_around_filter`,
`append_around_filter`, `after_filter`,
`prepend_after_filter`, `skip_after_filter` and
`append_after_filter`.

@rafaelfranca rafaelfranca self-assigned this Oct 10, 2016

rafaelfranca added some commits May 23, 2016

Deprecated ActionDispatch::ParamsParser::ParamsParser
ActionDispatch::ParamsParser class was removed in favor of
ActionDispatch::Http::Parameters so it is better to move the error
constant to the new class.
Remove deprecated support for passing `:path` and route path as sting…
…s in `ActionDispatch::Routing::Mapper#match`
Remove deprecated support to non-keyword arguments in `ActionDispatch…
…::IntegrationTest`,

`#process`, `#get`, `#post`, `#patch`, `#put`, `#delete`, and `#head`.

@rafaelfranca rafaelfranca force-pushed the deprecations branch to de9542a Oct 10, 2016

@rafaelfranca rafaelfranca merged commit 0cbb0be into master Oct 10, 2016

3 checks passed

codeclimate Code Climate didn't find any new or fixed issues.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@rafaelfranca rafaelfranca deleted the deprecations branch Oct 10, 2016

@@ -620,28 +611,8 @@ def init_with(coder) # :nodoc:
end
end
# Undefine `to_param` such that it gets caught in the `method_missing`
# deprecation cycle below.
undef_method :to_param

This comment has been minimized.

@kaspth

kaspth Oct 10, 2016

Member

Should we still undef this?

This comment has been minimized.

@rafaelfranca

rafaelfranca Oct 10, 2016

Member

I think so. The idea to undef this was to users not call to_param on parameters expecting the hash behavior and getting the to_s result. If we keep it defined it will silently break again and users will have the wrong behavior.

This comment has been minimized.

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