Currently this gem crashes when used as a Rails engine within another Rails app. The problem occurs within the pagination as the current_page variable isn't set. The full crash is:
NameError - undefined local variable or method `current_page' for #<#<Class:0x000000098b56d8>:0x00000009abdc50>:
resque-scheduler-web (0.0.1) app/views/resque_web/plugins/resque_scheduler/delayed/_next_more.erb:7
To prevent this, I've altered the pagination partial to infer the current path from request.path if it isn't already set.
Currently this gem crashes when used as a Rails engine within another Rails app. The problem occurs within the pagination as the
current_page
variable isn't set. The full crash is:To prevent this, I've altered the pagination partial to infer the current path from
request.path
if it isn't already set.