Commit e9c638e92c95ba46dc3e4ceb1437bd7d17fef624
Committed by
Rafael Manzo
1 parent
8c803107
Exists in
colab
and in
4 other branches
Fixing projects create acceptance test
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
Gemfile.lock
1 | GIT | 1 | GIT |
2 | remote: https://github.com/mezuro/kalibro_client | 2 | remote: https://github.com/mezuro/kalibro_client |
3 | - revision: c87d4e5b55f768ba4e59f964ac9d8dcea94216d6 | 3 | + revision: a4315323d18e70eb7161c4bce93227c614fce295 |
4 | specs: | 4 | specs: |
5 | kalibro_client (0.0.1) | 5 | kalibro_client (0.0.1) |
6 | activesupport (>= 2.2.1) | 6 | activesupport (>= 2.2.1) |
app/models/project.rb
1 | class Project < KalibroClient::Entities::Processor::Project | 1 | class Project < KalibroClient::Entities::Processor::Project |
2 | + include KalibroRecord | ||
2 | def self.latest(count = 1) | 3 | def self.latest(count = 1) |
3 | all.sort { |a,b| b.id <=> a.id }.first(count) | 4 | all.sort { |a,b| b.id <=> a.id }.first(count) |
4 | end | 5 | end |