Sha256: 710548aa32da124fcffa2bc54d55193c59dfce27303fd280a6c40d7255eed85d
Contents?: true
Size: 637 Bytes
Versions: 60
Compression:
Stored size: 637 Bytes
Contents
module <%= package_name %> module Concerns module Controller extend ActiveSupport::Concern include Plutonium::Portal::Controller <%- if rodauth_account.present? -%> include Plutonium::Auth::Rodauth(:<%= rodauth_account %>) <%- elsif public_access? -%> include Plutonium::Auth::Public <%- end -%> # add concerns above. <%- if bring_your_own_auth? -%> included do helper_method :current_user end def current_user raise NotImplementedError, "#{self.class}#current_user must return a non nil value" end <%- end -%> end end end
Version data entries
60 entries across 60 versions & 1 rubygems