mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unnecessary with_default_enforce_utf8
method
Because the same method is defined in `FormWithTest` of the parent class.
fe9547b6fb/actionview/test/template/form_helper/form_with_test.rb (L19..L26)
This commit is contained in:
parent
fe9547b6fb
commit
36390b6bdc
1 changed files with 0 additions and 9 deletions
|
@ -2347,13 +2347,4 @@ class FormWithActsLikeFormForTest < FormWithTest
|
|||
ensure
|
||||
I18n.locale = old_locale
|
||||
end
|
||||
|
||||
def with_default_enforce_utf8(value)
|
||||
old_value = ActionView::Helpers::FormTagHelper.default_enforce_utf8
|
||||
ActionView::Helpers::FormTagHelper.default_enforce_utf8 = value
|
||||
|
||||
yield
|
||||
ensure
|
||||
ActionView::Helpers::FormTagHelper.default_enforce_utf8 = old_value
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue