Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
simplify reader and predicate method
  • Loading branch information
tenderlove committed Feb 28, 2012
1 parent 96bb1b2 commit 5949eb3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lib/resque.rb
Expand Up @@ -115,17 +115,12 @@ def to_s
"Resque Client connected to #{redis_id}"
end

attr_accessor :inline

# If 'inline' is true Resque will call #perform method inline
# without queuing it into Redis and without any Resque callbacks.
# The 'inline' is false Resque jobs will be put in queue regularly.
def inline?
@inline
end
alias_method :inline, :inline?

def inline=(inline)
@inline = inline
end
alias :inline? :inline

#
# queue manipulation
Expand Down

0 comments on commit 5949eb3

Please sign in to comment.