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'],