Commit e27279cc0d04d2022cfd2437f589946b996e49d0

Authored by Laust Rud Jacobsen
1 parent 4e09db48
Exists in master and in 1 other branch production

Rubocop: fix long string with implicit newlines

app/models/notification_services/gtalk_service.rb
... ... @@ -45,10 +45,10 @@ class NotificationServices::GtalkService < NotificationService
45 45 client.connect(service)
46 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 53 # post the issue to the xmpp room(s)
54 54 send_to_users(client, message) unless user_id.blank?
... ...