Skip to content

Commit

Permalink
Merge pull request resque#521 from tenderlove/simplify
Browse files Browse the repository at this point in the history
simplify reader and predicate method
  • Loading branch information
hone committed Feb 28, 2012
2 parents e5deeed + 5949eb3 commit ea78953
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 ea78953

Please sign in to comment.