Sha256: 29243134fff3fa5aeffe932e78965f9e27a556bd599ec86f3a81bbecbbfc6c5e

Contents?: true

Size: 337 Bytes

Versions: 13

Compression:

Stored size: 337 Bytes

Contents

module CurationConcerns
  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)
      CurationConcerns.const_get("#{curation_concern.model_name.name}Form")
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 app/services/curation_concerns/work_form_service.rb
curation_concerns-1.7.7 app/services/curation_concerns/work_form_service.rb
curation_concerns-2.0.0 app/services/curation_concerns/work_form_service.rb
curation_concerns-2.0.0.rc2 app/services/curation_concerns/work_form_service.rb
curation_concerns-1.7.6 app/services/curation_concerns/work_form_service.rb
curation_concerns-1.7.5 app/services/curation_concerns/work_form_service.rb
curation_concerns-1.7.4 app/services/curation_concerns/work_form_service.rb
curation_concerns-1.7.3 app/services/curation_concerns/work_form_service.rb
curation_concerns-1.7.2 app/services/curation_concerns/work_form_service.rb
curation_concerns-2.0.0.rc1 app/services/curation_concerns/work_form_service.rb
curation_concerns-1.7.1 app/services/curation_concerns/work_form_service.rb
curation_concerns-1.7.0 app/services/curation_concerns/work_form_service.rb
curation_concerns-1.7.0.beta1 app/services/curation_concerns/work_form_service.rb