lib/dry/rails.rb in dry-rails-0.3.0 vs lib/dry/rails.rb in dry-rails-0.4.0
- old
+ new
@@ -9,13 +9,15 @@
#
# @example set up a container with auto-registration paths
# # config/initializer/system.rb
#
# Dry::Rails.container do
- # auto_register!("lib", "app/operations")
- # end
+ # config.component_dirs.add "lib" do |dir|
+ # dir.namespaces.add "my_super_cool_app", key: nil
+ # end
#
- # @see Dry::Rails::Container.auto_register!
+ # config.component_dirs.add "app/operations"
+ # end
#
# @api public
module Rails
# Set container block that will be evaluated in the context of the container
#