Class: ValkyrieCreateStrategy
- Inherits:
-
Object
- Object
- ValkyrieCreateStrategy
- Defined in:
- lib/hyrax/specs/shared_specs/factories/strategies/valkyrie_resource.rb
Overview
Instance Method Summary collapse
Instance Method Details
#result(evaluation) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/hyrax/specs/shared_specs/factories/strategies/valkyrie_resource.rb', line 6 def result(evaluation) evaluation.notify(:after_build, evaluation.object) evaluation.notify(:before_create, evaluation.object) result = persister.save(resource: evaluation.object) evaluation.notify(:after_create, result) result end |