0
0
Fork 0

Autofix Rubocop Lint/AmbiguousOperatorPrecedence (#23681)

This commit is contained in:
Nick Schonning 2023-02-17 22:30:23 -05:00 committed by GitHub
parent e2567df860
commit a6f77aa28a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 27 deletions

View file

@ -14,7 +14,7 @@ class SystemKey < ApplicationRecord
before_validation :set_key
scope :expired, ->(now = Time.now.utc) { where(arel_table[:created_at].lt(now - ROTATION_PERIOD * 3)) }
scope :expired, ->(now = Time.now.utc) { where(arel_table[:created_at].lt(now - (ROTATION_PERIOD * 3))) }
class << self
def current_key