These are chat archives for dry-rb/chat
Next-gen ruby libs! » github.com/dry-rb » website: https://dry-rb.org » forum: https://discourse.dry-rb.org
could somebody help me to include activesupport time into the dry-system project?
I put the following file into the system/boot directory, but this does not seem threadsafe.
# system/boot/time_zone.rb require 'active_support/time' Time.zone = MyApp.config.time_zone
MyApp is my main container
class MyApp < Dry::Web::Container setting :time_zone configure do |config| config.time_zone = 'Moscow' end end
Time.zone.nowit fails with error "undefined method