-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seeing undefined method `adapter_name' for ActiveJob:Module #20
Comments
I've encountered a similar error with the
Upon reviewing the gems, I've pinpointed the issue within the private methods of def queue_name(event)
ActiveJob.adapter_name(event.payload[:adapter]) + "(#{event.payload[:job].queue_name})"
end I couldn't find anything about def queue_name(event)
"(#{event.payload[:job].queue_name})"
end Maybe it's a bit risky to avoid the error this way (at least until the new fixes). You could simply disable the feature in the initializer instead. Debugbar.configure do |config|
config.active_job = false
end |
Thank you @obromios for the report and @raihanM99 for digging! 🙏 The queue_name method was directly copied from Rails but I didn't realize that I have started a fix that I'm hoping to publish this week: #24 |
Thank you for fixing this. I tried to test it with the master branch, but saw an exception with this explanation
I tried putting it <%= debugbar_body(opt_hash) %> into the body, but opt_hash in not defined. Maybe it is now a configuration option? I checked the changelog and it did not contain any more information and the current documentation has not been updated for the Turbo drive release. I apologise if you were planning to fix this for the next gem release. |
I also note that the documentation for the action cable configuration has |
Thank you for testing so fast @obromios 😄 I have released 0.3.0 and updated the docs. The error message was meant to say "this is where you put your config if you have any" but you're right it wasn't clear. I updated the error message before the release 🙏 You can use The documentation was fully updated! I also removed the mention of |
I have tried 0.3.0 and the documentation is up to date, and it all works well. Thank you for this useful utility. |
This looks like a very good idea, however, when I install it according to the instructions I get the following exception on page load
and the exception occurs at this line in a before_action in my application controller
EventTrackingJob.perform_later(name: "Visited #{controller_name}##{action_name}", user_id: visitor_id)
The text was updated successfully, but these errors were encountered: