Skip to content

Commit 90216ab

Browse files
authored
Merge pull request rails#40162 from jhawthorn/remove_name_redefinition
Don't override module name on AV::Base subclass
2 parents fbaf50f + 91ae9df commit 90216ab

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

actionview/lib/action_view/base.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,8 @@ def with_empty_template_cache # :nodoc:
191191
define_method(:compiled_method_container) { subclass }
192192
define_singleton_method(:compiled_method_container) { subclass }
193193

194-
def self.name
195-
superclass.name
196-
end
197-
198194
def inspect
199-
"#<#{self.class.name}:#{'%#016x' % (object_id << 1)}>"
195+
"#<ActionView::Base:#{'%#016x' % (object_id << 1)}>"
200196
end
201197
}
202198
end

0 commit comments

Comments
 (0)