Sha256: 0a88a7de414353c6f0a587463250ea258b8e713f213decda82ec71ae5c058eb2
Contents?: true
Size: 389 Bytes
Versions: 6
Compression:
Stored size: 389 Bytes
Contents
module Capcoauth class ApplicationController < ActionController::Base if ::Rails.version.to_i < 4 protect_from_forgery else protect_from_forgery with: :exception end def capcoauth_token @capcoauth_token ||= OAuth::AccessToken.new(session[:capcoauth_access_token]) end def oauth_callback_url "#{root_url}auth/callback" end end end
Version data entries
6 entries across 6 versions & 1 rubygems