class Admin::VimeoAccountController
Public Instance Methods
callback()
click to toggle source
# File app/controllers/admin/vimeo_account_controller.rb, line 34 def callback # vimeo will redirect us here upon successful authorization base = Vimeo::Advanced::Base.new( account[:consumer_key], account[:consumer_secret]) access_token = base.get_access_token(params[:oauth_token], session[:oauth_secret], params[:oauth_verifier]) RefinerySetting.find_by_name('vimeo_token').update_attribute(:value, access_token.token) RefinerySetting.find_by_name('vimeo_secret').update_attribute(:value, access_token.secret) flash.notice = "You successfully authorized your vimeo account for integration in your backend. You can now start using it." redirect_to refinery_root_path end
Protected Instance Methods
restrict_controller()
click to toggle source
# File app/controllers/admin/vimeo_account_controller.rb, line 50 def restrict_controller end