Sha256: 800c9a1407751d0fde607c6302fd750a0db96cb1fce0fccd3be69c0d7fbc6113

Contents?: true

Size: 315 Bytes

Versions: 58

Compression:

Stored size: 315 Bytes

Contents

module Hyrax
  class WorkFormService
    def self.build(curation_concern, current_ability, *extra)
      form_class(curation_concern).new(curation_concern, current_ability, *extra)
    end

    def self.form_class(curation_concern)
      Hyrax.const_get("#{curation_concern.model_name.name}Form")
    end
  end
end

Version data entries

58 entries across 58 versions & 2 rubygems

Version Path
hyrax-2.9.6 app/services/hyrax/work_form_service.rb
hyrax-2.9.5 app/services/hyrax/work_form_service.rb
hyrax-2.9.4 app/services/hyrax/work_form_service.rb
hyrax-2.9.3 app/services/hyrax/work_form_service.rb
hyrax-2.9.2 app/services/hyrax/work_form_service.rb
hyrax-2.9.1 app/services/hyrax/work_form_service.rb
hyrax-2.9.0 app/services/hyrax/work_form_service.rb
hyrax-2.8.0 app/services/hyrax/work_form_service.rb
hyrax-2.7.2 app/services/hyrax/work_form_service.rb
hyrax-2.7.1 app/services/hyrax/work_form_service.rb
hyrax-2.7.0 app/services/hyrax/work_form_service.rb
hyrax-2.6.0 app/services/hyrax/work_form_service.rb
hyrax-3.0.0.pre.rc1 app/services/hyrax/work_form_service.rb
hyrax-3.0.0.pre.beta3 app/services/hyrax/work_form_service.rb
hyrax-2.5.1 app/services/hyrax/work_form_service.rb
hyrax-2.5.0 app/services/hyrax/work_form_service.rb
hyrax-3.0.0.pre.beta2 app/services/hyrax/work_form_service.rb
hyrax-2.4.1 app/services/hyrax/work_form_service.rb
hyrax-3.0.0.pre.beta1 app/services/hyrax/work_form_service.rb
hyrax-2.4.0 app/services/hyrax/work_form_service.rb