Skip to content

Remove :rescue_format option for translate helper#20019

Merged
matthewd merged 1 commit into
rails:masterfrom
imanel:remove_rescue_format
May 5, 2015
Merged

Remove :rescue_format option for translate helper#20019
matthewd merged 1 commit into
rails:masterfrom
imanel:remove_rescue_format

Conversation

@imanel

@imanel imanel commented May 4, 2015

Copy link
Copy Markdown
Contributor

:rescue_format is not documented, it's not working in I18n and support for it was removed with Rails 4.1.0.

This pull request removes leftovers from that time - two tests that were always passing, one old test name and flag that was working in nearly exact the same way as passing :raise flag.

Rails 5.0 is great moment to remove this flag - next time will be probably in two years with 6.x branch since it might be considered as backward-incompatible.

@imanel

imanel commented May 4, 2015

Copy link
Copy Markdown
Contributor Author

/cc @matthewd

@imanel

imanel commented May 4, 2015

Copy link
Copy Markdown
Contributor Author

As for deprecation notice - it shows for anyone using this flag since I18n v0.5.1 that was included in Rails 3.0.6.

matthewd added a commit that referenced this pull request May 5, 2015
Remove :rescue_format option for translate helper
@matthewd matthewd merged commit 4fa9351 into rails:master May 5, 2015
@imanel imanel deleted the remove_rescue_format branch May 5, 2015 07:30
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