Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bbb0a76e17
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (19 sloc) 0.491 kb
class ApplicationController < ActionController::Base
protect_from_forgery
private
def auth_required
session[:current_user]
end
def twitter_client
if @twitter_client
@twitter_client
else
@twitter_client = Twitter::Client.new(
:oauth_token => auth_required['credentials']['token'],
:oauth_token_secret => auth_required['credentials']['secret']
)
Rails.logger.info @twitter_client.inspect
@twitter_client
end
end
end
Jump to Line
Something went wrong with that request. Please try again.