Updated rubocop to latest version (0.64).

This commit is contained in:
Thorsten Eckel 2019-02-11 14:52:50 +01:00
parent b370975a01
commit 575606981b
3 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -29,7 +29,7 @@ class Observer::Ticket::RefObjectTouch < ActiveRecord::Observer
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']

View file

@ -12,7 +12,7 @@ class Issue1219ZhtwLocaleTypo < ActiveRecord::Migration[5.1]
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 @@ class Issue1219ZhtwLocaleTypo < ActiveRecord::Migration[5.1]
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