Skip to content

Commit

Permalink
Fix error message when trying to send_later on a method that doesn't …
Browse files Browse the repository at this point in the history
…exist
  • Loading branch information
bkeepers committed Feb 8, 2010
1 parent 7bec196 commit c7ce97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/performable_method.rb
Expand Up @@ -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) }
Expand Down

0 comments on commit c7ce97a

Please sign in to comment.