mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Merge pull request #2019 from bf4/fix_method_redefined_warning
Fix AMS warnings
This commit is contained in:
committed by
Benjamin Fleischer
parent
21bcfd891d
commit
0dd7680fe5
@@ -67,6 +67,7 @@ class SerializerGeneratorTest < Rails::Generators::TestCase
|
||||
yield
|
||||
ensure
|
||||
String.class_eval do
|
||||
undef_method :safe_constantize
|
||||
alias_method :safe_constantize, :old
|
||||
undef_method :old
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user