aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2018-02-04 15:21:41 -0500
committerAlec Warner <antarus@gentoo.org>2018-02-04 15:21:41 -0500
commit6f3a5fb40b8976f6e02259eca7beb04a5e6f4d29 (patch)
tree3f850e0df2ec036e8adc0459ce1d052c6b46f65d /app
parentFix bug where field limits were not being raised. (diff)
downloadpackages-6f3a5fb40b8976f6e02259eca7beb04a5e6f4d29.tar.gz
packages-6f3a5fb40b8976f6e02259eca7beb04a5e6f4d29.tar.bz2
packages-6f3a5fb40b8976f6e02259eca7beb04a5e6f4d29.zip
Fix bug in versions.
Previously it matched by name but package.name == 'portage' and we need to match on atom. So switch to atom.
Diffstat (limited to 'app')
-rw-r--r--app/models/package.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/package.rb b/app/models/package.rb
index b6e86fe..7ad3cbe 100644
--- a/app/models/package.rb
+++ b/app/models/package.rb
@@ -44,7 +44,7 @@ class Package
end
def versions
- @versions ||= Version.find_all_by(:package, name, sort: { sort_key: { order: 'asc' } })
+ @versions ||= Version.find_all_by(:package, atom, sort: { sort_key: { order: 'asc' } })
end
def latest_version