Skip to content

Commit 369b856

Browse files
Copilotanna328p
andcommitted
fix: update load_by_glob call in jobs.rb to use QBot::Database
After moving load_by_glob to QBot::Database module, jobs.rb was still calling it as a top-level method, causing NoMethodError at startup. Update the call to QBot::Database.load_by_glob('jobs', '*.rb'). Co-authored-by: anna328p <9790772+anna328p@users.noreply.github.com>
1 parent 8f925ce commit 369b856

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/qbot/jobs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ def self.logger = Logger.new($stdout)
77

88
ActiveJob::Base.queue_adapter = :delayed_job
99

10-
load_by_glob('jobs', '*.rb')
10+
QBot::Database.load_by_glob('jobs', '*.rb')

0 commit comments

Comments
 (0)