From 050d7b1b921b7ce782fab23b5e418e6c539e78e0 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Tue, 21 Feb 2017 12:49:45 +0000 Subject: Removed `model_name` method to prevent warning --- actionpack/test/dispatch/routing/direct_url_helpers_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/test/dispatch/routing/direct_url_helpers_test.rb') diff --git a/actionpack/test/dispatch/routing/direct_url_helpers_test.rb b/actionpack/test/dispatch/routing/direct_url_helpers_test.rb index cc500e02c8..9bdda60742 100644 --- a/actionpack/test/dispatch/routing/direct_url_helpers_test.rb +++ b/actionpack/test/dispatch/routing/direct_url_helpers_test.rb @@ -27,6 +27,7 @@ class TestDirectUrlHelpers < ActionDispatch::IntegrationTest @id = id end + remove_method :model_name def model_name @_model_name ||= ActiveModel::Name.new(self.class, nil, self.class.name.demodulize) end -- cgit v1.2.3