Autofix Rubocop Lint/AmbiguousOperatorPrecedence (#23681)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user