statianzo / que-web

A web interface for the Que queue
BSD 3-Clause "New" or "Revised" License
88 stars 50 forks source link

Question: How do you make this work? #89

Open ssoulless opened 3 years ago

ssoulless commented 3 years ago

Thank you for this nice gem, very useful!

I just have a small doubt, Im trying to replicate this https://github.com/statianzo/que-web/blob/d663559b46f0afa9215a1cb8a0e2418197b66342/lib/que/web/sql.rb#L95

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 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.