collectiveidea/delayed_job_active_record — pull request #89 by csmuc (2014-05-04 06:39:36+00:00)
Title: Extract reserve methods.

Can be used to more easily monkey-patch the code to always use the default SQL statement (see #33).

In my particular case I want to use the default SQL statement with MySQL to avoid mysqld logs '[Warning] Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses a LIMIT clause. This is unsafe because the set of rows included cannot be predicted.'

These logs are triggered by the optimized SQL. The `.reserve_with_scope` method can be used as a hook for a monkey-patch without copying lots of code.