eBooru/app/logical/document_store/proxy.rb
Earlopain fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00

18 lines
349 B
Ruby

# frozen_string_literal: true
module DocumentStore
module Proxy
def self.included(base)
base.class_eval do
def self.document_store
@document_store ||= ClassMethodProxy.new(self)
end
def document_store
@document_store ||= InstanceMethodProxy.new(self)
end
end
end
end
end