mirror of https://github.com/rails/rails
Removed `model_name` method to prevent warning
This commit is contained in:
parent
c116eaf221
commit
050d7b1b92
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue