Module: PropelAuthentication::ConfigurationMethods
- Included in:
- InstallGenerator
- Defined in:
- lib/generators/propel_authentication/templates/core/configuration_methods.rb
Class Method Summary collapse
-
.included(base) ⇒ Object
Shared class options across all PropelAuthentication generators.
Class Method Details
.included(base) ⇒ Object
Shared class options across all PropelAuthentication generators
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/generators/propel_authentication/templates/core/configuration_methods.rb', line 25 def self.included(base) base.class_option :namespace, type: :string, default: nil, desc: "Authentication namespace (e.g., 'api', 'admin_api'). Use 'none' for no namespace. Defaults to PropelAuthentication configuration." base.class_option :version, type: :string, default: nil, desc: "Authentication version (e.g., 'v1', 'v2'). Use 'none' for no versioning. Defaults to PropelAuthentication configuration." base.class_option :auth_scope, type: :string, default: nil, desc: "Authentication scope namespace (e.g., 'auth', 'admin'). Use 'none' for no auth scope. Defaults to nil for clean URLs." # Legacy support for existing --api-version option base.class_option :api_version, type: :string, default: nil, desc: "Legacy: Use --version instead. Authentication version (e.g., 'v1', 'v2')." end |