Permalink
Browse files

Revert "temporary fix for http://github.com/collectiveidea/delayed_jo…

…b/issues/issue/113"

This reverts commit ecfc1e4.
  • Loading branch information...
1 parent ecfc1e4 commit 76795ea02e457a6bffaf6ecef3bb3f98f9adae06 guns committed Sep 9, 2010
Showing with 7 additions and 7 deletions.
  1. +1 −1 lib/delayed/performable_mailer.rb
  2. +6 −6 lib/delayed/performable_method.rb
@@ -3,7 +3,7 @@
module Delayed
class PerformableMailer < PerformableMethod
def perform
- object.send(delayed_method, *args).deliver
+ object.send(method, *args).deliver
end
end
end
@@ -1,19 +1,19 @@
module Delayed
- class PerformableMethod < Struct.new(:object, :delayed_method, :args)
- def initialize(object, delayed_method, args)
- raise NoMethodError, "undefined method `#{delayed_method}' for #{object.inspect}" unless object.respond_to?(delayed_method, true)
+ class PerformableMethod < Struct.new(:object, :method, :args)
+ def initialize(object, method, args)
+ raise NoMethodError, "undefined method `#{method}' for #{object.inspect}" unless object.respond_to?(method, true)
self.object = object
self.args = args
- self.delayed_method = delayed_method.to_sym
+ self.method = method.to_sym
end
def display_name
- "#{object.class}##{delayed_method}"
+ "#{object.class}##{method}"
end
def perform
- object.send(delayed_method, *args) if object
+ object.send(method, *args) if object
end
def method_missing(symbol, *args)

0 comments on commit 76795ea

Please sign in to comment.