Skip to content

Commit ea78953

Browse files
committed
Merge pull request resque#521 from tenderlove/simplify
simplify reader and predicate method
2 parents e5deeed + 5949eb3 commit ea78953

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

lib/resque.rb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,12 @@ def to_s
115115
"Resque Client connected to #{redis_id}"
116116
end
117117

118+
attr_accessor :inline
119+
118120
# If 'inline' is true Resque will call #perform method inline
119121
# without queuing it into Redis and without any Resque callbacks.
120122
# The 'inline' is false Resque jobs will be put in queue regularly.
121-
def inline?
122-
@inline
123-
end
124-
alias_method :inline, :inline?
125-
126-
def inline=(inline)
127-
@inline = inline
128-
end
123+
alias :inline? :inline
129124

130125
#
131126
# queue manipulation

0 commit comments

Comments
 (0)