mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Removed model_name
method to prevent warning
This commit is contained in:
parent
c116eaf221
commit
050d7b1b92
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue