Only allow XML response if repo has a build

This commit is contained in:
Henrik Hodne 2013-10-26 08:14:40 -05:00
parent 8ff052792c
commit 44f274d306

View File

@ -16,7 +16,7 @@ module Travis::Api::App::Responders
} }
def apply? def apply?
super && resource.is_a?(Repository) super && resource.is_a?(Repository) && last_build
end end
def apply def apply