lib/hanami/components/components.rb in hanami-1.2.0.rc1 vs lib/hanami/components/components.rb in hanami-1.2.0.rc2

- old
+ new

@@ -59,10 +59,10 @@ # @api private register 'code' do run do directory = Hanami.root.join('lib') - if Components['environment'].code_reloading? + if Hanami.code_reloading? Utils.reload!(directory) else Utils.require!(directory) end end