noesya/osuny

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

Summary

Maintainability
A
0 mins
Test Coverage
F
57%
class Communication::Block::Component::PersonCategory < Communication::Block::Component::Base

  def categories
    university.person_categories
  end

  def category
    categories.find_by(id: data)
  end

  def dependencies
    [category]
  end

end