We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af5b04f + 17cf843 commit 1f723c1Copy full SHA for 1f723c1
lib/travis/model/build.rb
@@ -130,7 +130,7 @@ def last_state_on(options)
130
end
131
132
def older_than(build = nil)
133
- scope = descending.paged({}) # TODO in which case we'd call older_than without an argument?
+ scope = order('number::integer DESC').paged({}) # TODO in which case we'd call older_than without an argument?
134
scope = scope.where('number::integer < ?', (build.is_a?(Build) ? build.number : build).to_i) if build
135
scope
136
0 commit comments