Sha256: 4c56e3a31057e16e6b006f1c6131796457e711cabaf5b95a14e7b8e4f7811593

Contents?: true

Size: 254 Bytes

Versions: 5

Compression:

Stored size: 254 Bytes

Contents

class TestWorkerAdapter
  def enqueue(delay, base_class, options)
    options[:source_object_class_name] = base_class.constantize
    counter_class = options[:counter].constantize
    counter = counter_class.new(nil, options)
    counter.save!
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
counter-cache-0.3.0 spec/support/worker_adapter.rb
counter-cache-0.2.0 spec/support/worker_adapter.rb
counter-cache-0.1.0 spec/support/worker_adapter.rb
counter-cache-0.0.2 spec/support/worker_adapter.rb
counter-cache-0.0.1 spec/support/worker_adapter.rb