lib/travis/client/repository.rb in travis-1.6.8.travis.455.6 vs lib/travis/client/repository.rb in travis-1.6.8.travis.456.6
- old
+ new
@@ -182,9 +182,13 @@
def owner
session.account(owner_name)
end
+ def requests
+ attributes['requests'] ||= session.find_many(Request, :repository_id => id)
+ end
+
def settings
attributes['settings'] ||= begin
settings = session.get("/repos/#{id}/settings")['settings']
settings.repository = self
settings