Skip to content

undefined method 'detach_from' when using Rails' main branch #3

@luizkowalski

Description

@luizkowalski

I have an app using Rails' main branch like this

gem "rails", github: "rails/rails"

when I boot the app, I get this error

=> Booting Puma
=> Rails 8.2.0.alpha application starting in development
=> Run `bin/rails server --help` for more startup options
Exiting
/Users/luiz/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/logstruct-0.1.7/lib/log_struct/integrations/active_job.rb:29:in 'block in LogStruct::Integrations::ActiveJob.setup': undefined method 'detach_from' for class ActiveJob::LogSubscriber (NoMethodError)

          ::ActiveJob::LogSubscriber.detach_from :active_job
                                    ^^^^^^^^^^^^
        from /Users/luiz/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/bundler/gems/rails-4f4e0acaf558/activesupport/lib/active_support/lazy_load_hooks.rb:97:in 'Module#class_eval'

I checked the history of ActiveJob::LogSubscriber and there are no mentions of this method being removed or existing, but there is such method in ActiveSupport::Subscriber class.

am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions