From cceafe906fbbabb87d2740b780ea4623d2439f9f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 1 Dec 2014 11:24:07 +0100 Subject: [PATCH] Fixed twitter integration. --- app/models/channel/twitter2.rb | 2 +- app/models/observer/ticket/article/communicate_twitter.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/channel/twitter2.rb b/app/models/channel/twitter2.rb index ad65f2c84..df418a7b4 100644 --- a/app/models/channel/twitter2.rb +++ b/app/models/channel/twitter2.rb @@ -2,7 +2,7 @@ require 'twitter' -class Channel::Twitter2 +class Channel::TWITTER2 def connect(channel) @client = Twitter::REST::Client.new do |config| config.consumer_key = channel[:options][:consumer_key] diff --git a/app/models/observer/ticket/article/communicate_twitter.rb b/app/models/observer/ticket/article/communicate_twitter.rb index 49d84d0c5..6ac8ba61c 100644 --- a/app/models/observer/ticket/article/communicate_twitter.rb +++ b/app/models/observer/ticket/article/communicate_twitter.rb @@ -17,7 +17,7 @@ class Observer::Ticket::Article::CommunicateTwitter < ActiveRecord::Observer type = Ticket::Article::Type.lookup( :id => record.type_id ) return if type['name'] != 'twitter direct-message' && type['name'] != 'twitter status' - a = Channel::Twitter2.new + a = Channel::TWITTER2.new message = a.send( { :type => type['name'],