Remove unused memoization in `CustomFilter#expires_in` method (#30117)
This commit is contained in:
parent
f1a4b4e228
commit
924af400da
|
@ -51,7 +51,6 @@ class CustomFilter < ApplicationRecord
|
||||||
after_commit :invalidate_cache!
|
after_commit :invalidate_cache!
|
||||||
|
|
||||||
def expires_in
|
def expires_in
|
||||||
return @expires_in if defined?(@expires_in)
|
|
||||||
return nil if expires_at.nil?
|
return nil if expires_at.nil?
|
||||||
|
|
||||||
EXPIRATION_DURATIONS.find { |expires_in| expires_in.from_now >= expires_at }
|
EXPIRATION_DURATIONS.find { |expires_in| expires_in.from_now >= expires_at }
|
||||||
|
|
Loading…
Reference in New Issue