Enable the Lint/StringConversionInInterpolation cop
This commit is contained in:
parent
d473119f9d
commit
baf7977786
8 changed files with 12 additions and 12 deletions
|
@ -46,7 +46,7 @@ namespace :'2018_09_12_fix_templates' do
|
|||
.each do |instance|
|
||||
|
||||
instance.update(body: instance.body.gsub("--libellé procédure--", "--libellé démarche--"))
|
||||
rake_puts "Body mis-à-jour pour #{klass.to_s}##{instance.id}"
|
||||
rake_puts "Body mis-à-jour pour #{klass}##{instance.id}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -47,7 +47,7 @@ namespace :after_party do
|
|||
def remove_footer(template)
|
||||
matches = template.body.match(FOOTER_REGEXP)
|
||||
if matches && FOOTER_EXCEPTIONS.none? { |exception| matches[0].include?(exception) }
|
||||
rake_puts "#{template.model_name.to_s} \##{template.id}: removing footer"
|
||||
rake_puts "#{template.model_name} \##{template.id}: removing footer"
|
||||
template.update(body: matches.pre_match)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace :after_party do
|
|||
.each do |instance|
|
||||
|
||||
instance.update(subject: instance.subject.gsub("--libellé procédure--", "--libellé démarche--"))
|
||||
rake_puts "Subject mis-à-jour pour #{klass.to_s}##{instance.id}"
|
||||
rake_puts "Subject mis-à-jour pour #{klass}##{instance.id}"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue