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:
parent
fe097fa629
commit
855cb4bef2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue