1
0
Fork 0
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:
Andrew White 2017-02-21 12:49:45 +00:00
parent c116eaf221
commit 050d7b1b92

View file

@ -27,6 +27,7 @@ class TestDirectUrlHelpers < ActionDispatch::IntegrationTest
@id = id @id = id
end end
remove_method :model_name
def model_name def model_name
@_model_name ||= ActiveModel::Name.new(self.class, nil, self.class.name.demodulize) @_model_name ||= ActiveModel::Name.new(self.class, nil, self.class.name.demodulize)
end end