Sha256: 283b7f39416c430967b2d730143d7f1c78f9e179a2eb51a3f5b103b1243f502a
Contents?: true
Size: 416 Bytes
Versions: 29
Compression:
Stored size: 416 Bytes
Contents
module Hyrax module DenyAccessOverrideBehavior # Overriding the default behavior from Hydra::Core::ControllerBehavior def deny_access(exception) if current_user&.persisted? redirect_to root_path, alert: exception.message else session['user_return_to'.freeze] = request.url redirect_to main_app.new_user_session_path, alert: exception.message end end end end
Version data entries
29 entries across 29 versions & 1 rubygems