Sha256: ecddb665571730379bc0e36307b549af8420af37e0948b660ce294483c517817

Contents?: true

Size: 786 Bytes

Versions: 21

Compression:

Stored size: 786 Bytes

Contents

module CurationConcerns
  #  To use this module, include it in your Actor class
  #  and then add its interpreters wherever you want them to run.
  #  They should be called _before_ apply_attributes is called because
  #  they intercept values in the attributes Hash.
  #
  #  @example
  #  class MyActorClass < BaseActor
  #     include Worthwile::ManagesEmbargoesActor
  #
  #     def create
  #       interpret_visibility && super
  #     end
  #
  #     def update
  #       interpret_visibility && super
  #     end
  #  end
  #
  module ManagesEmbargoesActor
    extend ActiveSupport::Concern
    extend Deprecation

    included do
      Deprecation.warn(ManagesEmbargoesActor, "ManagesEmbargoesActor is deprecated and will be removed in CurationConcerns 1.0")
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
curation_concerns-1.0.0.beta4 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-1.0.0.beta3 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-1.0.0.beta2 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-1.0.0.beta1 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.14.0 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.14.0.pre4 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.14.0.pre3 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.14.0.pre2 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.14.0.pre1 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.13.1 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.13.0 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.12.0 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.12.0.pre9 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.12.0.pre8 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.12.0.pre7 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.12.0.pre6 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.12.0.pre5 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.12.0.pre4 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.12.0.pre3 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb
curation_concerns-0.12.0.pre2 app/actors/concerns/curation_concerns/manages_embargoes_actor.rb