Sha256: c3270bf3f88ba9a956d4f129ace66f886732800dd6e23adeab4fd8b4490b4605
Contents?: true
Size: 598 Bytes
Versions: 5
Compression:
Stored size: 598 Bytes
Contents
class SessionsController < ApplicationController skip_before_filter :authorization prepend_after_filter :reset_session, :only => :destroy public def create @session = Session.create(params[:session]) if @session current_user @session.user @session.permissions = guard.permissions(self) render :json => @session.to_json(:excludes => :groups) else head :not_found end end def destroy # reset session happens in the after filter which allows for # audit log with username which happens in another after filter head :ok end end
Version data entries
5 entries across 5 versions & 1 rubygems