Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Expand readme to include job fu. Corrected JobFuHandler class name.

  • Loading branch information...
commit bdda1e95e38d9705dfe0df0c1ef29acd343e7dc1 1 parent e04424f
@jnstq jnstq authored
Showing with 13 additions and 2 deletions.
  1. +6 −1 README.rdoc
  2. +7 −1 lib/handler/job_fu_handler.rb
View
7 README.rdoc
@@ -28,10 +28,15 @@ Rails environment.rb configuration
= Configuration
-Packaged with Delayed Job handler out of the box, but can support any custom handler to perform background work.
+Packaged with both Delayed Job and JobFu handler out of the box, but can support any custom handler to perform background work.
# rails config/initializers/backgrounded.rb
+
+ # Delayed Job, see http://github.com/tobi/delayed_job/tree/master
Backgrounded.handler = Backgrounded::Handler::DelayedJobHandler.new
+
+ # Job Fu, see http://github.com/jnstq/job_fu/tree
+ Backgrounded.handler = Backgrounded::Handler::JobFuHandler.new
== Copyright
View
8 lib/handler/job_fu_handler.rb
@@ -4,7 +4,13 @@ module Backgrounded
module Handler
# invoke the operation in the background using job fu
# see http://github.com/jnstq/job_fu/tree
- class JobJuHandler
+ class JobFuHandler
+ # ==== Parameters
+ # Optional argment hash will be picked up by the request method
+ #
+ # * <tt>:priority</tt> - priority for the job
+ # * <tt>:at</tt> - when the job should run
+ #
def request(object, method, *args)
opt = args.extract_options!
priority, process_at = opt[:priority], opt[:at]
Please sign in to comment.
Something went wrong with that request. Please try again.