Fix Rails/WhereRange
cop (#30343)
This commit is contained in:
parent
70608f824e
commit
def6b686ff
10 changed files with 15 additions and 15 deletions
|
@ -24,7 +24,7 @@ class Invite < ApplicationRecord
|
|||
belongs_to :user, inverse_of: :invites
|
||||
has_many :users, inverse_of: :invite, dependent: nil
|
||||
|
||||
scope :available, -> { where(expires_at: nil).or(where('expires_at >= ?', Time.now.utc)) }
|
||||
scope :available, -> { where(expires_at: nil).or(where(expires_at: Time.now.utc..)) }
|
||||
|
||||
validates :comment, length: { maximum: COMMENT_SIZE_LIMIT }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue