1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Call method outside the loop

We only need to call this method once.
This commit is contained in:
Rafael Mendonça França 2019-12-27 15:13:44 -03:00
parent fe097fa629
commit 855cb4bef2
No known key found for this signature in database
GPG key ID: FC23B6D0F1EEE948

View file

@ -2059,8 +2059,8 @@ class FormWithActsLikeFormForTest < FormWithTest
("<label for='\#{field}'>\#{field.to_s.humanize}:</label> " + super + "<br/>").html_safe
end
RUBY_EVAL
ruby2_keywords(:fields) if respond_to?(:ruby2_keywords, true)
end
ruby2_keywords(:fields) if respond_to?(:ruby2_keywords, true)
end
def test_form_with_with_labelled_builder