mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
14 lines
350 B
Ruby
14 lines
350 B
Ruby
# frozen_string_literal: true
|
|
|
|
# HACK: to prevent the resetting of instance variables after each request in Rails 7
|
|
# see https://github.com/rails/rails/pull/43735
|
|
if Rails::VERSION::MAJOR >= 7
|
|
module ActionController
|
|
module Testing
|
|
module Functional
|
|
def clear_instance_variables_between_requests; end
|
|
end
|
|
end
|
|
end
|
|
end
|