14 lines
455 B
Ruby
14 lines
455 B
Ruby
ActiveAdmin.register_page "Jam Class Knobs" do
|
|
menu :parent => 'JamClass'
|
|
|
|
page_action :force_hourly, :method => :post do
|
|
|
|
Resque.enqueue(HourlyJob)
|
|
redirect_to admin_jam_class_knobs_path, :notice => "Re-running the Hourly Job. Lessons will be analysed; any payments will be attempted that should be, etc"
|
|
end
|
|
|
|
|
|
action_item do
|
|
link_to "Force Hourly Background Job", admin_jam_class_knobs_force_hourly_path, :method => :post
|
|
end
|
|
end |