Skip to content

Uncaught exception: undefined method 'deprecators' #406

@poloka

Description

@poloka

With the release of 6.1.2, started getting the following error:

Uncaught exception: undefined method `deprecators' for <...>
	/.rvm/gems/ruby-2.7.6/gems/activeresource-6.1.2/lib/active_resource/railtie.rb:26:in `block in <class:Railtie>'
	/.rvm/gems/ruby-2.7.6/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `instance_exec'
	/.rvm/gems/ruby-2.7.6/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `run'
	/.rvm/gems/ruby-2.7.6/gems/railties-6.1.7.6/lib/rails/initializable.rb:61:in `block in run_initializers'
	/.rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each'

We backed down to 6.1.1 and our application starts as expected. Looks to be some new logic in the railtie initialization.
07db0e8#diff-5bddb168eb3f657b2137a0416a2a4670a601ee8c5ed41cd0aacd01e4a95a83bcR26

To remain passive, should this be updated to the following?

app.deprecators[:active_resource] = ActiveResource.deprecator if app.respond_to?(:deprecators)

Or is there some now required configuration introduced in this patch version release?

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