Class: Socializer::AuthenticationsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/socializer/authentications_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



7
8
9
10
11
# File 'app/controllers/socializer/authentications_controller.rb', line 7

def destroy
  @authentication = current_user.authentications.find(params[:id])
  @authentication.destroy
  redirect_to authentications_path
end

#indexObject



3
4
5
# File 'app/controllers/socializer/authentications_controller.rb', line 3

def index
  @authentications = current_user.services
end