Enable Rubocop Style/StringConcatenation defaults (#23792)
This commit is contained in:
@ -13,7 +13,7 @@ module ActivityPub::CaseTransform
|
||||
when Symbol then camel_lower(value.to_s).to_sym
|
||||
when String
|
||||
camel_lower_cache[value] ||= if value.start_with?('_:')
|
||||
'_:' + value.gsub(/\A_:/, '').underscore.camelize(:lower)
|
||||
"_:#{value.gsub(/\A_:/, '').underscore.camelize(:lower)}"
|
||||
else
|
||||
value.underscore.camelize(:lower)
|
||||
end
|
||||
|
@ -19,7 +19,7 @@ class ValidationErrorFormatter
|
||||
messages = errors.messages[attribute_name]
|
||||
|
||||
h[@aliases[attribute_name] || attribute_name] = attribute_errors.map.with_index do |error, index|
|
||||
{ error: 'ERR_' + error[:error].to_s.upcase, description: messages[index] }
|
||||
{ error: "ERR_#{error[:error].to_s.upcase}", description: messages[index] }
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user