lib/resque/plugins/dynamic_queues/server.rb in resque-dynamic-queues-0.7.0 vs lib/resque/plugins/dynamic_queues/server.rb in resque-dynamic-queues-0.7.1
- old
+ new
@@ -30,11 +30,11 @@
else
an <=> bn
end
end
- plugin_view :queues
+ dynamicqueues_view :queues
end
app.post "/dynamicqueues" do
dynamic_queues = Array(params['queues'])
queues = {}
@@ -46,10 +46,10 @@
Resque.set_dynamic_queues(queues)
redirect url(:dynamicqueues)
end
app.helpers do
- def plugin_view(filename, options = {}, locals = {})
+ def dynamicqueues_view(filename, options = {}, locals = {})
erb(File.read(File.join(::Resque::Plugins::DynamicQueues::Server::VIEW_PATH, "#{filename}.erb")), options, locals)
end
end
app.tabs << "DynamicQueues"