Skip to content

Commit

Permalink
Fix Rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
yannis committed Jun 23, 2024
1 parent a6a8913 commit f4423e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/cup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ class Cup < ApplicationRecord
validate :header_image_is_image

def self.past
where("cups.start_on < ?", Date.current)
where(cups: {start_on: ...Date.current})
end

def self.future
where("cups.start_on >= ?", Date.current)
where(cups: {start_on: Date.current..})
end

def to_param
Expand Down

0 comments on commit f4423e2

Please sign in to comment.