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.0.1 app/services/hyrax/work_form_service.rb
hyrax-2.0.0 app/services/hyrax/work_form_service.rb
hyrax-2.0.0.rc3 app/services/hyrax/work_form_service.rb
hyrax-2.0.0.rc2 app/services/hyrax/work_form_service.rb
hyrax-2.0.0.rc1 app/services/hyrax/work_form_service.rb
hyrax-1.0.5 app/services/hyrax/work_form_service.rb
hyrax-2.0.0.beta5 app/services/hyrax/work_form_service.rb
hyrax-2.0.0.beta4 app/services/hyrax/work_form_service.rb
hyrax-2.0.0.beta3 app/services/hyrax/work_form_service.rb
hyrax-2.0.0.beta2 app/services/hyrax/work_form_service.rb
hyrax-2.0.0.beta1 app/services/hyrax/work_form_service.rb
hyrax-1.0.4 app/services/hyrax/work_form_service.rb
hyrax-1.0.3 app/services/hyrax/work_form_service.rb
hyrax-1.0.2 app/services/hyrax/work_form_service.rb
hyrax-1.0.1 app/services/hyrax/work_form_service.rb
hyrax-1.0.0.rc2 app/services/hyrax/work_form_service.rb
hyrax-1.0.0.rc1 app/services/hyrax/work_form_service.rb
test_hyrax-0.0.1.alpha app/services/hyrax/work_form_service.rb