Bump rubocop from 1.57.2 to 1.58.0 and fix offenses
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.57.2 to 1.58.0. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.57.2...v1.58.0) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
![49699333+dependabot[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
Sebastian Serth

parent
be3264ac25
commit
bcb6409126
@ -12,7 +12,7 @@ class ApplicationRecord < ActiveRecord::Base
|
||||
# and except the `log` of TestrunMessages or the `output` of Testruns
|
||||
attribute_names.without('content', 'log', 'output').each do |name|
|
||||
if send(name.to_sym).respond_to?(:strip)
|
||||
send("#{name}=".to_sym, send(name).strip)
|
||||
send(:"#{name}=", send(name).strip)
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -21,7 +21,7 @@ class ApplicationRecord < ActiveRecord::Base
|
||||
# remove null bytes from string attributes
|
||||
attribute_names.each do |name|
|
||||
if send(name.to_sym).respond_to?(:tr)
|
||||
send("#{name}=".to_sym, send(name).tr("\0", ''))
|
||||
send(:"#{name}=", send(name).tr("\0", ''))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user