Sha256: 4b434074f5cadf03253574c12280658901964483434fcc2d2a8fc959dc1609aa
Contents?: true
Size: 357 Bytes
Versions: 22
Compression:
Stored size: 357 Bytes
Contents
class SessionsController < ApplicationController [:user, :guest, :admin].each do |role| class_eval %{ def login_#{role} session[:current_#{role}] = User.find params[:id] render :nothing => true end def logout_#{role} session[:current_#{role}] = nil render :nothing => true end } end end
Version data entries
22 entries across 22 versions & 1 rubygems