1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #40162 from jhawthorn/remove_name_redefinition

Don't override module name on AV::Base subclass
This commit is contained in:
John Hawthorn 2020-09-03 00:02:54 -07:00 committed by GitHub
commit 90216abe12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,12 +191,8 @@ module ActionView #:nodoc:
define_method(:compiled_method_container) { subclass }
define_singleton_method(:compiled_method_container) { subclass }
def self.name
superclass.name
end
def inspect
"#<#{self.class.name}:#{'%#016x' % (object_id << 1)}>"
"#<ActionView::Base:#{'%#016x' % (object_id << 1)}>"
end
}
end