Commit 3b6228dc27fad65250884256bec05a66e1dff74c
1 parent
83eb63cb
Exists in
master
and in
4 other branches
It's better to use STI instead
Showing
1 changed file
with
0 additions
and
1 deletions
Show diff stats
app/models/snippet.rb
... | ... | @@ -34,7 +34,6 @@ class Snippet < ActiveRecord::Base |
34 | 34 | scope :private, -> { where(private: true) } |
35 | 35 | scope :fresh, -> { order("created_at DESC") } |
36 | 36 | scope :expired, -> { where(["expires_at IS NOT NULL AND expires_at < ?", Time.current]) } |
37 | - scope :has_project, -> { where("bars.id IS NOT NULL") } | |
38 | 37 | scope :non_expired, -> { where(["expires_at IS NULL OR expires_at > ?", Time.current]) } |
39 | 38 | |
40 | 39 | def self.content_types | ... | ... |