Skip to content

Commit

Permalink
Fix RuboCop offence
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Oct 22, 2023
1 parent b8667e7 commit 52c16c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,3 @@ Style/FormatStringToken:

Style/IfUnlessModifier:
Enabled: false

Style/StringConcatenation:
Exclude:
- 'test/**/*'
4 changes: 2 additions & 2 deletions test/action_view/cases/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def whole_form_for(action = 'http://www.example.com', id = nil, html_class = nil
method = options
end

form_for_text(action, id, html_class, remote, (validators || no_validate), file) + snowman(method) + (contents || '') + '</form>'
form_for_text(action, id, html_class, remote, (validators || no_validate), file) << snowman(method) << (contents || '') << '</form>'
end

def form_with_text(action = 'http://www.example.com', id = nil, html_class = nil, local = nil, validators = nil, file = nil)
Expand Down Expand Up @@ -221,7 +221,7 @@ def whole_form_with(action = 'http://www.example.com', options = nil)
method = options
end

form_with_text(action, id, html_class, local, (validators || no_validate), file) + snowman(method) + (contents || '') + '</form>'
form_with_text(action, id, html_class, local, (validators || no_validate), file) << snowman(method) << (contents || '') << '</form>'
end

def client_side_form_settings_helper
Expand Down

0 comments on commit 52c16c2

Please sign in to comment.