This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#application_controller.rb | |
class ApplicationController < ActionController::Base | |
helper_method :yt_client | |
private | |
def yt_client | |
@yt_client ||= YouTubeIt::Client.new(:username => user, :password => password, :dev_key => dev_key) | |
#you can use the auth method that you want. | |
end | |
end |