Hi all, i’ve a problem with zeitwerk trying using ...
# support
w
Hi all, i’ve a problem with zeitwerk trying using a custom state machine. i have
Copy code
lib/my_store/state_machines/order.rb

module MyStore
  class StateMachines
    module Order
      extend ActiveSupport::Concern
...
Copy code
in config/application.rb

config.eager_load_paths << Rails.root.join('lib')
but i get this the error loading the class TypeError: StateMachines is not a class /.rvm/gems/ruby-3.1.2@egs/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/callbacks.rb48 previous definition of StateMachines was here i’ve already lost some time…any suggestion?