Thank you for this nice gem, very useful!
I just have a small doubt, Im trying to replicate this
|
delete_job: delete_jobs_query(lock_job_sql), |
Mapping a function inside a hash so SQL[:delete_job] calls the method, when I try to use a function inside a hash in plain ruby I get undefined method delete_jobs_query'` error...
Now sure how are you making this work, any explanation?
Thank you!
PD: I think this is a StackOverflow question but did not find a relevant tag for this gem so better to ask directly.
Thank you for this nice gem, very useful!
I just have a small doubt, Im trying to replicate this
que-web/lib/que/web/sql.rb
Line 95 in d663559
Mapping a function inside a hash so
SQL[:delete_job]calls the method, when I try to use a function inside a hash in plain ruby I getundefined methoddelete_jobs_query'` error...Now sure how are you making this work, any explanation?
Thank you!
PD: I think this is a StackOverflow question but did not find a relevant tag for this gem so better to ask directly.