noesya/osuny

View on GitHub
app/models/communication/block/component/volume.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
50%
class Communication::Block::Component::Volume < Communication::Block::Component::Base

  def volume
    return unless website
    website.research_volumes.find_by(id: data)
  end

  def dependencies
    [volume]
  end

end