diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-03-05 17:17:49 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-03-05 18:12:17 -0500 |
commit | 836d5930332797192094ce4a3c8083e96f7e8c53 (patch) | |
tree | c747507b44acc831105773a6560bd6e3694a93bb /app/models/project_snippet.rb | |
parent | 28bee175dbdba8bb0ca04887d6f8d5c4d727a0bd (diff) | |
download | gitlab-ce-836d5930332797192094ce4a3c8083e96f7e8c53.tar.gz |
Remove `Snippet#expires_at`rs-snippets-dont-expire
This was removed from the interface in
https://github.com/gitlabhq/gitlabhq/pull/6027 but its implementation
lingered around for two years.
Diffstat (limited to 'app/models/project_snippet.rb')
-rw-r--r-- | app/models/project_snippet.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/app/models/project_snippet.rb b/app/models/project_snippet.rb index 9e2c1b0e18e..1f7d85a5f3d 100644 --- a/app/models/project_snippet.rb +++ b/app/models/project_snippet.rb @@ -10,7 +10,6 @@ # created_at :datetime # updated_at :datetime # file_name :string(255) -# expires_at :datetime # type :string(255) # visibility_level :integer default(0), not null # @@ -23,6 +22,4 @@ class ProjectSnippet < Snippet # Scopes scope :fresh, -> { order("created_at DESC") } - scope :non_expired, -> { where(["expires_at IS NULL OR expires_at > ?", Time.current]) } - scope :expired, -> { where(["expires_at IS NOT NULL AND expires_at < ?", Time.current]) } end |