Sha256: 6d557e86e33feee397e575d5160a87436fe633e1066779e76737dc9f0a237d80
Contents?: true
Size: 688 Bytes
Versions: 1
Compression:
Stored size: 688 Bytes
Contents
module <%= package_name %> module <%= package_name %>Controller extend ActiveSupport::Concern include Plutonium::Application::Controller <%- if rodauth_account.present? -%> include Plutonium::Auth.rodauth(:<%= rodauth_account %>) <%- elsif public_access? -%> include Plutonium::Auth::Public <%- 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plutonium-0.8.0 | lib/generators/pu/pkg/app/templates/app/controllers/package_controller.rb.tt |