Sha256: 3702ed6a46070bd65d9cf8e4ff2979f438a8dadd320dad87f405d82a8cf729d2

Contents?: true

Size: 293 Bytes

Versions: 11

Compression:

Stored size: 293 Bytes

Contents

module CurationConcerns
  module CurationConcern
    def self.actor(curation_concern, *args)
      actor_identifier = curation_concern.class.to_s.split('::').last
      klass = "CurationConcerns::#{actor_identifier}Actor".constantize
      klass.new(curation_concern, *args)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
curation_concerns-0.11.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.11.0.rc1 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.10.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.9.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.8.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.7.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.6.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.5.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.4.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.3.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.2.0 app/services/curation_concerns/curation_concern.rb