noesya/osuny

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

Summary

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

  def category
    return unless website
    website.post_categories
           .find_by(id: data)
  end

  def dependencies
    [category]
  end

end