mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Fix method redefined warning
This commit is contained in:
parent
ef19a9e703
commit
40489fa8a2
@ -67,6 +67,7 @@ class SerializerGeneratorTest < Rails::Generators::TestCase
|
|||||||
yield
|
yield
|
||||||
ensure
|
ensure
|
||||||
String.class_eval do
|
String.class_eval do
|
||||||
|
undef_method :safe_constantize
|
||||||
alias_method :safe_constantize, :old
|
alias_method :safe_constantize, :old
|
||||||
undef_method :old
|
undef_method :old
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user