noesya/osuny

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class Communication::Block::Component::Organization < Communication::Block::Component::Base

  def organization
    template.block
            .university
            .organizations
            .find_by(id: data)
  end

  def dependencies
    [organization]
  end

end