Permalink
Browse files

Fix error message when trying to send_later on a method that doesn't …

…exist
  • Loading branch information...
1 parent 7bec196 commit c7ce97ad2b857d33aa864cd629e3d1ca7a2a319c @bkeepers bkeepers committed Feb 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/delayed/performable_method.rb
@@ -16,7 +16,7 @@ class LoadError < StandardError
end
def initialize(object, method, args)
- raise NoMethodError, "undefined method `#{method}' for #{self.inspect}" unless object.respond_to?(method)
+ raise NoMethodError, "undefined method `#{method}' for #{object.inspect}" unless object.respond_to?(method)
self.object = dump(object)
self.args = args.map { |a| dump(a) }

0 comments on commit c7ce97a

Please sign in to comment.