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