Sha256: f37b7d6468d01d1b2ab984ba5761b5183eaf3d35542433df3d391fd958d7ef3f
Contents?: true
Size: 498 Bytes
Versions: 270
Compression:
Stored size: 498 Bytes
Contents
class AuthenticationsController < ApplicationController def index @authentications = current_user.authentications if current_user end def create auth = request.env["omniauth.auth"] current_user.authentications.find_or_create_by_provider_and_uid(auth['provider'], auth['uid']) redirect_to authentications_url end def destroy @authentication = current_user.authentications.find(params[:id]) @authentication.destroy redirect_to authentications_url end end
Version data entries
270 entries across 270 versions & 4 rubygems