Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjaustin committed Apr 20, 2024
1 parent 43313b1 commit e026a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def field_id(form_or_object_name, attribute, index: nil, **_kwargs)

# This is a partial re-implementation of ActionView::Helpers::FormTagHelper#field_name.
# The method contract changed in Rails 7.0, but we can't use the default because it sometimes
# includes other information that -- at a minimum -- wrecks havoc on the Cucumber feature tests.
# includes other information that -- at a minimum -- wreaks havoc on the Cucumber feature tests.
# It is used in when constructing forms, like in app/views/tags/new.html.erb.
def field_name(form_or_object_name, attribute, *_method_names, multiple: false, index: nil)
object_name = if form_or_object_name.respond_to?(:object_name)
Expand Down

0 comments on commit e026a09

Please sign in to comment.