lib/you_track/client/models/projects.rb in you_track-0.3.0 vs lib/you_track/client/models/projects.rb in you_track-0.4.0
- old
+ new
@@ -1,11 +1,11 @@
class YouTrack::Client::Projects < YouTrack::Client::Collection
model YouTrack::Client::Project
def all
- service.projects.load(service.get_projects.body)
+ load(service.get_projects.body)
end
def get(identity)
- all.detect { |p| p.id == identity }
+ find { |p| p.identity == identity }
end
end