Sha256: a8e40591b4c4ae2cabef39639de31ec25fde139347bc7a6fcec525cb3edf1ba5
Contents?: true
Size: 419 Bytes
Versions: 19
Compression:
Stored size: 419 Bytes
Contents
class ApplicationController < ActiveElement::ApplicationController prepend_before_action :configure_authentication private def configure_authentication active_element.authenticate_with { authenticate_user! } active_element.authorize_with { current_user } active_element.sign_out_with(method: :delete) { destroy_user_session_path } active_element.sign_in_with { new_user_session_path } end end
Version data entries
19 entries across 19 versions & 1 rubygems