Sha256: c2c6ae0b1b7726cc1913ffc295dafab6958b946506b46fa152fafa3b73319e15
Contents?: true
Size: 365 Bytes
Versions: 8
Compression:
Stored size: 365 Bytes
Contents
class UsersController < ApplicationController respond_to?(:before_action) ? (before_action :authenticate_user!) : (before_filter :authenticate_user!) def index @users = User.all end def show @user = User.find(params[:id]) end def start_session @user = User.find(params[:id]) cookies[:session_id] = @user.encrypted_password end end
Version data entries
8 entries across 8 versions & 1 rubygems