Run rubocop --fix-layout and remove encoding comments

This commit is contained in:
Patrick Gansterer 2021-03-01 15:27:26 +01:00
parent fa63e6e81d
commit ea2862fdef
283 changed files with 1164 additions and 1969 deletions

View file

@ -6,7 +6,7 @@ module CustomFields
included do
after_initialize do
settings.defaults['custom_fields'] = { } unless settings.custom_fields
settings.defaults['custom_fields'] = {} unless settings.custom_fields
end
after_save do

View file

@ -3,7 +3,6 @@ module FindEachWithOrder
extend ActiveSupport::Concern
class_methods do
def find_each_with_order(options = {})
find_in_batches_with_order(options) do |records|
records.each { |record| yield record }
@ -34,6 +33,5 @@ module FindEachWithOrder
records = relation.offset(start).to_a
end
end
end
end

View file

@ -12,7 +12,7 @@ module MarkAsDeletedWithName
n = ''
begin
append = " \u2020" + n
deleted_name = name.truncate(max_length-append.length, omission: '') + append
deleted_name = name.truncate(max_length - append.length, omission: '') + append
if n.blank?
n = 'A'
else