aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2017-02-21 12:49:45 +0000
committerAndrew White <andrew.white@unboxed.co>2017-02-21 15:30:47 +0000
commit050d7b1b921b7ce782fab23b5e418e6c539e78e0 (patch)
tree52d48b785f821b8b9fe63546015ce494046eeeff /actionpack
parentc116eaf2217abbc83ad76ac09c4fb89e033e1cdd (diff)
downloadrails-050d7b1b921b7ce782fab23b5e418e6c539e78e0.tar.gz
rails-050d7b1b921b7ce782fab23b5e418e6c539e78e0.tar.bz2
rails-050d7b1b921b7ce782fab23b5e418e6c539e78e0.zip
Removed `model_name` method to prevent warning
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/dispatch/routing/direct_url_helpers_test.rb1
1 files changed, 1 insertions, 0 deletions
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