Class: CurationConcerns::WorkFormService
- Inherits:
-
Object
- Object
- CurationConcerns::WorkFormService
- Defined in:
- app/services/curation_concerns/work_form_service.rb
Class Method Summary collapse
Class Method Details
.build(curation_concern, current_ability, *extra) ⇒ Object
3 4 5 |
# File 'app/services/curation_concerns/work_form_service.rb', line 3 def self.build(curation_concern, current_ability, *extra) form_class(curation_concern).new(curation_concern, current_ability, *extra) end |
.form_class(curation_concern) ⇒ Object
7 8 9 |
# File 'app/services/curation_concerns/work_form_service.rb', line 7 def self.form_class(curation_concern) CurationConcerns.const_get("#{curation_concern.model_name.name}Form") end |