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.
1 parent 2320e3c commit 04e3e83Copy full SHA for 04e3e83
app/models/project.rb
@@ -11,7 +11,7 @@ class Project < ApplicationRecord
11
scope :owner, ->(owner) { where("(repository ->> 'owner') = ?", owner) }
12
scope :keyword, ->(keyword) { where("keywords @> ARRAY[?]::varchar[]", keyword) }
13
scope :with_readme, -> { where.not(readme: nil) }
14
- scope :with_repository, -> { where.not(repository: nil) }
+ scope :with_repository, -> { where.not(repository: {}) }
15
scope :with_commits, -> { where.not(commits: nil) }
16
scope :with_keywords, -> { where.not(keywords: []) }
17
scope :without_keywords, -> { where(keywords: []) }
0 commit comments