mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Fix deprecation warnings on Rails 6
takes into account suggestions from @bf4
This commit is contained in:
@@ -125,7 +125,12 @@ module ActionController
|
||||
tests Api::V3::LookupTestController
|
||||
|
||||
setup do
|
||||
@test_namespace = self.class.parent
|
||||
@test_namespace =
|
||||
if Module.method_defined?(:module_parent)
|
||||
self.class.module_parent
|
||||
else
|
||||
self.class.parent
|
||||
end
|
||||
end
|
||||
|
||||
test 'uses request headers to determine the namespace' do
|
||||
|
||||
Reference in New Issue
Block a user