Module: Sufia::Works::Trophies
- Extended by:
- ActiveSupport::Concern
- Included in:
- Sufia::WorkBehavior
- Defined in:
- app/models/concerns/sufia/works/trophies.rb
Instance Method Summary collapse
Instance Method Details
#cleanup_trophies ⇒ Object
8 9 10 |
# File 'app/models/concerns/sufia/works/trophies.rb', line 8 def cleanup_trophies Trophy.where(work_id: id).destroy_all end |