Merge pull request #2019 from bf4/fix_method_redefined_warning

Fix AMS warnings
This commit is contained in:
Benjamin Fleischer
2017-01-06 23:04:21 -05:00
committed by Benjamin Fleischer
parent 21bcfd891d
commit 0dd7680fe5
2 changed files with 2 additions and 1 deletions

View File

@@ -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