Permalink
Browse files

rearranging the deck chairs

  • Loading branch information...
1 parent d58dcf4 commit 304a7a98a1d2c34d389cb09a264d1e3b8d87039e @bkeepers bkeepers committed May 19, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/delayed/backend/base.rb
@@ -42,10 +42,6 @@ def failed?
end
alias_method :failed, :failed?
- def payload_object
- @payload_object ||= deserialize(self['handler'])
- end
-
def name
@name ||= begin
payload = payload_object
@@ -57,6 +53,10 @@ def payload_object=(object)
self['handler'] = object.to_yaml
end
+ def payload_object
+ @payload_object ||= deserialize(self['handler'])
+ end
+
# Moved into its own method so that new_relic can trace it.
def invoke_job
payload_object.perform

0 comments on commit 304a7a9

Please sign in to comment.