Permalink
Browse files

Updated rubocop to latest version (0.64).

  • Loading branch information...
thorsteneckel committed Feb 11, 2019
1 parent b370975 commit 575606981be3b5d4ca74cfff1ac5f75c345a6630
@@ -408,7 +408,7 @@ GEM
rspec-mocks (~> 3.8.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.0)
rubocop (0.63.1)
rubocop (0.64.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.5, != 2.5.1.1)
@@ -29,7 +29,7 @@ def ref_object_touch(record)
end

# touch new/current customer
record.customer&.touch
record.customer&.touch # rubocop:disable Rails/SkipsModelValidations

# touch old organization if changed
organization_id_changed = record.saved_changes['organization_id']
@@ -12,7 +12,7 @@ def up
Locale.find_by(locale: 'zj-tw')&.update(locale: 'zh-tw')
end

Translation.where(locale: 'zj-tw')&.update_all(locale: 'zh-tw')
Translation.where(locale: 'zj-tw')&.update_all(locale: 'zh-tw') # rubocop:disable Rails/SkipsModelValidations
User.where('preferences LIKE ?', "%\nlocale: zj-tw\n%").each do |u|
u.preferences[:locale] = 'zh-tw'
u.save
@@ -29,7 +29,7 @@ def down
Locale.find_by(locale: 'zh-tw')&.update(locale: 'zj-tw')
end

Translation.where(locale: 'zh-tw')&.update_all(locale: 'zj-tw')
Translation.where(locale: 'zh-tw')&.update_all(locale: 'zj-tw') # rubocop:disable Rails/SkipsModelValidations
User.where('preferences LIKE ?', "%\nlocale: zh-tw\n%").each do |u|
u.preferences[:locale] = 'zj-tw'
u.save

0 comments on commit 5756069

Please sign in to comment.