Sha256: 21902e4ee336d70f31d3e04c448fc5fbb4838a9def784960122d0bc5da474672

Contents?: true

Size: 305 Bytes

Versions: 2

Compression:

Stored size: 305 Bytes

Contents

# frozen_string_literal: true
class FakeActor < Hyrax::Actors::AbstractActor
  attr_accessor :created, :destroyed, :updated

  def create(env)
    self.created = env

    true
  end

  def destroy(env)
    self.destroyed = env

    true
  end

  def update(env)
    self.updated = env

    true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hyrax-5.0.0 spec/support/fakes/fake_actor.rb
hyrax-5.0.0.rc3 spec/support/fakes/fake_actor.rb