lib/delayed/performable_method.rb in delayed_job-2.1.4 vs lib/delayed/performable_method.rb in delayed_job-3.0.0.pre

- old
+ new

@@ -1,8 +1,10 @@ require 'active_support/core_ext/module/delegation' module Delayed - class PerformableMethod < Struct.new(:object, :method_name, :args) + class PerformableMethod + attr_accessor :object, :method_name, :args + delegate :method, :to => :object def initialize(object, method_name, args) raise NoMethodError, "undefined method `#{method_name}' for #{object.inspect}" unless object.respond_to?(method_name, true)