Sha256: 37d768ba93093bb9bb64505f01e7f1bbdef74bdd1ef7403542a81d34543a3656
Contents?: true
Size: 798 Bytes
Versions: 1
Compression:
Stored size: 798 Bytes
Contents
module Socialite class UsersController < ApplicationController unloadable before_filter :ensure_user respond_to :html, :json def show respond_with(user) end def edit respond_with(user) end def update flash_message :notice, 'Your account has been removed along with any associated identities.' respond_with(user) do |format| format.html { redirect_back_or_default(user_path) } end end def destroy user.destroy logout! flash_message :notice, 'Your account has been removed along with any associated identities.' respond_with(user) do |format| format.html { redirect_back_or_default(user_path) } end end private def user @user = current_user end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
socialite-0.1.0.pre | app/controllers/socialite/users_controller.rb |