1
0
Fork 0
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:
yuuji.yaginuma 2018-05-28 11:08:09 +09:00
parent fe9547b6fb
commit 36390b6bdc

View file

@ -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