osunyorg/admin

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

Summary

Maintainability
A
0 mins
Test Coverage
class Communication::Block::Component::Project < Communication::Block::Component::Base

  def project
    return unless website
    website.projects
           .published_now_in(template.block.language)
           .find_by(id: data)
  end

  def dependencies
    [project]
  end

end