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