Skip to content
Snippets Groups Projects

Disable method replacement in avatar loading

Merged Stan Hu requested to merge sh-disable-batch-load-replace-methods into master
4 files
+ 10
4
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -91,7 +91,8 @@ def upload_paths(identifier)
private
def retrieve_upload_from_batch(identifier)
BatchLoader.for(identifier: identifier, model: self).batch(key: self.class) do |upload_params, loader, args|
BatchLoader.for(identifier: identifier, model: self)
.batch(key: self.class, cache: true, replace_methods: false) do |upload_params, loader, args|
model_class = args[:key]
paths = upload_params.flat_map do |params|
params[:model].upload_paths(params[:identifier])
Loading