Module: PropelApi::ConfigurationMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
Shared class options across all PropelApi generators.
Class Method Details
.included(base) ⇒ Object
Shared class options across all PropelApi generators
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/generators/propel_api/core/configuration_methods.rb', line 10 def self.included(base) base.class_option :adapter, type: :string, default: 'propel_facets', desc: "Serialization adapter to use: 'propel_facets' or 'graphiti'. Defaults to PropelApi configuration." base.class_option :namespace, type: :string, default: 'api', desc: "API namespace (e.g., 'api', 'admin_api'). Use 'none' for no namespace. Defaults to PropelApi configuration." base.class_option :version, type: :string, default: 'v1', desc: "API version (e.g., 'v1', 'v2'). Use 'none' for no versioning. Defaults to PropelApi configuration." base.class_option :all_attributes, type: :boolean, default: false, desc: "Automatically include all model attributes from file and/or database schema for existing models" base.class_option :json_defaults, type: :boolean, default: nil, desc: "Add default: {} to json/jsonb fields in migrations. Defaults to PropelApi configuration." end |