Open
Description
Describe the bug
I have a namespace which looks like (example) CloudNATS
. This is a namespace of Rails application declared in config/application.rb
as well.
When I tried to import a dependecy, I got
Dry::Container::Error (Nothing registered with the key :http)
To Reproduce
# app/operations/create_user
class CreateUser
include CloudNATS::Import[:http]
end
# lib/cloudnats/http.rb
module CloudNATS
class HTTP
end
end
Expected behavior
The dependency is successfully imported without any exception. My namespace would
Your environment
- Affects my production application: NO
- Ruby version: 2.7.1
- OS: macOS