forked from lix-project/hydra
Result::Projects: give a builds method to access all of a project's builds
This commit is contained in:
parent
dcefb88373
commit
4086f3bafd
|
@ -248,6 +248,11 @@ __PACKAGE__->many_to_many("usernames", "projectmembers", "username");
|
|||
|
||||
use JSON::MaybeXS;
|
||||
|
||||
sub builds {
|
||||
my ($self) = @_;
|
||||
return $self->jobsets->related_resultset('builds');
|
||||
};
|
||||
|
||||
sub as_json {
|
||||
my $self = shift;
|
||||
|
||||
|
|
Loading…
Reference in a new issue