Forgive me, I am new to the dry-* community, and have been working in the background on converting our current service objects to the dry ecosystem.
A problem I've having is that I'm having issues reloading our container in a rails console. If I put any files I'd like to include in the container at the root level of the auto_register path it reloads just fine, but if I nest it under another folder, it does not reload.
To Reproduce
# in initializers/system.rb
Dry::Rails.container do
auto_register!('app/operations')
end
# in `app/operations/concepts/demonstrate_bug.rb`
module Concepts
class DemonstrateBug
def demonstrate_bug
puts 'Demonstrated'
end
end
end
And in a Rails console (our app is called Phoenix):
So far so good, but when I change something and then reload:
# in `app/operations/concepts/demonstrate_bug.rb`
module Concepts
class DemonstrateBug
def demonstrate_bug
puts 'Demonstrates potential pug'
end
end
end
I would expect changing the file and then reloading the Rails console would change the message in the Rails console to Demonstrates potential bug but it doesn't. Again I am new to this ecosystem so I may be missing something
Describe the bug
Forgive me, I am new to the
dry-*
community, and have been working in the background on converting our current service objects to the dry ecosystem.A problem I've having is that I'm having issues reloading our container in a rails console. If I put any files I'd like to include in the container at the root level of the
auto_register
path it reloads just fine, but if I nest it under another folder, it does not reload.To Reproduce
And in a Rails console (our app is called Phoenix):
So far so good, but when I change something and then reload:
Expected behavior
I would expect changing the file and then reloading the Rails console would change the message in the Rails console to
Demonstrates potential bug
but it doesn't. Again I am new to this ecosystem so I may be missing somethingYour environment