Commit e27279cc0d04d2022cfd2437f589946b996e49d0
1 parent
4e09db48
Exists in
master
and in
1 other branch
Rubocop: fix long string with implicit newlines
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
app/models/notification_services/gtalk_service.rb
@@ -45,10 +45,10 @@ class NotificationServices::GtalkService < NotificationService | @@ -45,10 +45,10 @@ class NotificationServices::GtalkService < NotificationService | ||
45 | client.connect(service) | 45 | client.connect(service) |
46 | client.auth(api_token) | 46 | client.auth(api_token) |
47 | 47 | ||
48 | - #has to look like this to be formatted properly in the client | ||
49 | - message = """#{problem.app.name} | ||
50 | -#{Errbit::Config.protocol}://#{Errbit::Config.host}/apps/#{problem.app.id} | ||
51 | -#{notification_description problem}""" | 48 | + # has to look like this to be formatted properly in the client |
49 | + message = """#{problem.app.name}\n" \ | ||
50 | + "#{Errbit::Config.protocol}://#{Errbit::Config.host}/apps/#{problem.app.id}\n" \ | ||
51 | + "#{notification_description problem}""" | ||
52 | 52 | ||
53 | # post the issue to the xmpp room(s) | 53 | # post the issue to the xmpp room(s) |
54 | send_to_users(client, message) unless user_id.blank? | 54 | send_to_users(client, message) unless user_id.blank? |