From e35d68f73b1305c1daf0a7545afe3063f9d4a19d Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 1 May 2015 14:36:36 +0200 Subject: [PATCH] Corrected with rubocop cop 'Style/AsciiIdentifiers'. --- app/models/observer/ticket/notification/background_job.rb | 4 ++-- lib/import/otrs2.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/observer/ticket/notification/background_job.rb b/app/models/observer/ticket/notification/background_job.rb index e1a97d63b..e320bfed1 100644 --- a/app/models/observer/ticket/notification/background_job.rb +++ b/app/models/observer/ticket/notification/background_job.rb @@ -70,7 +70,7 @@ class Observer::Ticket::Notification::BackgroundJob object: 'Ticket', o_id: ticket.id, seen: seen, - created_by_id: ticket.updated_by_id ||  1, + created_by_id: ticket.updated_by_id || 1, user_id: user.id, ) @@ -135,7 +135,7 @@ class Observer::Ticket::Notification::BackgroundJob history_type: 'notification', history_object: 'Ticket', value_to: recipient_list, - created_by_id: ticket.updated_by_id ||  1 + created_by_id: ticket.updated_by_id || 1 ) end diff --git a/lib/import/otrs2.rb b/lib/import/otrs2.rb index 42874f7b9..b7ef5156a 100644 --- a/lib/import/otrs2.rb +++ b/lib/import/otrs2.rb @@ -1004,7 +1004,7 @@ module Import::OTRS2 if group_lookup['Name'] == 'admin' && permissions && permissions.include?('rw') roles.push 'Admin' end - if group_lookup['Name'] =~ /^(stats|report)/ && permissions && ( permissions.include?('ro') ||  permissions.include?('rw') ) + if group_lookup['Name'] =~ /^(stats|report)/ && permissions && ( permissions.include?('ro') || permissions.include?('rw') ) roles.push 'Report' end end