Sha256: 4bd5f3a0a060d4a0c11a58497966927bdd5e9053b68fa98db2e74fcacc7611c2
Contents?: true
Size: 605 Bytes
Versions: 6
Compression:
Stored size: 605 Bytes
Contents
module OpenStax module Accounts class ApplicationController < ActionController::Base include Lev::HandleWith # Override current_user to always return an OpenStax::Accounts::User def current_user current_user_manager.accounts_current_user end protected def return_url(include_referrer=false) referrer = include_referrer ? request.referrer : nil # Always clear the session session_return_to = session.delete(:return_to) params[:return_to] || session_return_to || referrer || main_app.root_url end end end end
Version data entries
6 entries across 6 versions & 1 rubygems