mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-29 07:26:28 +08:00
13 lines
274 B
Ruby
13 lines
274 B
Ruby
# frozen_string_literal: true
|
|
|
|
Rails.application.config.to_prepare do
|
|
ActiveStorage::Blob::Analyzable.module_eval do
|
|
alias_method :original_analyze, :analyze
|
|
|
|
def analyze
|
|
ActiveRecord::Base.no_touching do
|
|
original_analyze
|
|
end
|
|
end
|
|
end
|
|
end
|