Fix Style/InverseMethods
cop (#28377)
This commit is contained in:
parent
3e336fe706
commit
b1dec09d20
4 changed files with 3 additions and 11 deletions
|
@ -91,7 +91,7 @@ class CustomFilter < ApplicationRecord
|
|||
filters_hash.values.map { |cache| [cache.delete(:filter), cache] }
|
||||
end.to_a
|
||||
|
||||
active_filters.select { |custom_filter, _| !custom_filter.expired? }
|
||||
active_filters.reject { |custom_filter, _| custom_filter.expired? }
|
||||
end
|
||||
|
||||
def self.apply_cached_filters(cached_filters, status)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue