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
1 changed files with 1 additions and 0 deletions

View File

@ -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