mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Fix method redefined warning
This commit is contained in:
@@ -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