DEV: Apply syntax_tree formatting to app/*

This commit is contained in:
David Taylor
2023-01-09 12:20:10 +00:00
parent a641ce4b62
commit 5a003715d3
696 changed files with 18447 additions and 15481 deletions

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require 'distributed_cache'
require "distributed_cache"
class ApplicationSerializer < ActiveModel::Serializer
embed :ids, include: true
@ -19,7 +19,9 @@ class ApplicationSerializer < ActiveModel::Serializer
when String
fragment_cache.delete(name_or_regexp)
when Regexp
fragment_cache.hash.keys
fragment_cache
.hash
.keys
.select { |k| k =~ name_or_regexp }
.each { |k| fragment_cache.delete(k) }
end