diff options
author | Andrew White <andrew.white@unboxed.co> | 2017-02-21 12:49:45 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2017-02-21 15:30:47 +0000 |
commit | 050d7b1b921b7ce782fab23b5e418e6c539e78e0 (patch) | |
tree | 52d48b785f821b8b9fe63546015ce494046eeeff /actionpack/test | |
parent | c116eaf2217abbc83ad76ac09c4fb89e033e1cdd (diff) | |
download | rails-050d7b1b921b7ce782fab23b5e418e6c539e78e0.tar.gz rails-050d7b1b921b7ce782fab23b5e418e6c539e78e0.tar.bz2 rails-050d7b1b921b7ce782fab23b5e418e6c539e78e0.zip |
Removed `model_name` method to prevent warning
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/routing/direct_url_helpers_test.rb | 1 |
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 |