lib/dry/rails/container.rb in dry-rails-0.1.0 vs lib/dry/rails/container.rb in dry-rails-0.2.0
- old
+ new
@@ -39,9 +39,18 @@
#
# @api public
# @!scope class
setting :auto_register_paths, [].freeze, reader: true
+ # @overload config.auto_inject_constant=(auto_inject_constant)
+ # Set a custom import constant name
+ #
+ # @param auto_inject_constant [String]
+ #
+ # @api public
+ # @!scope class
+ setting :auto_inject_constant, "Deps", reader: true
+
# @!endgroup
# The railtie has a rails-specific auto-registrar which is app-dir aware
config.auto_registrar = Rails::AutoRegistrars::App