Sha256: 87314428019847dba85c08d8f70bdf5435f6f4e4e006b302970dc35c97922569
Contents?: true
Size: 679 Bytes
Versions: 4
Compression:
Stored size: 679 Bytes
Contents
module <%= package_name %> module ResourceController extend ActiveSupport::Concern include Plutonium::Core::AppController <%- if rodauth_account.present? -%> include Plutonium::Auth.rodauth(:<%= rodauth_account %>) <%- elsif public_access? -%> include Plutonium::Auth::PublicAccess <%- end -%> # add concerns above. included do boot <%= package_name %> <%- if bring_your_own_auth? -%> helper_method :current_user <%- end -%> end <%- if bring_your_own_auth? -%> def current_user raise NotImplementedError, "#{self.class}#current_user must return a non nil value" end <%- end -%> end end
Version data entries
4 entries across 4 versions & 1 rubygems