1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/abstract_controller
Petrik 080edb444a Shorten inspect on AbstractController::Base
Calling self in an action of a controller generates an endless stream of
characters, including the request object and all instances variables.
This can be frustrating when using a debugger in a controller and
accidentally calling `self` generates output for a couple of seconds.

This shortens inspect to only show the class name.

    MyController.new.inspect # => "#<MyController:0x00000000005028>"
2020-09-05 19:37:31 +02:00
..
caching
railties
asset_paths.rb
base.rb Shorten inspect on AbstractController::Base 2020-09-05 19:37:31 +02:00
caching.rb
callbacks.rb
collector.rb
error.rb
helpers.rb
logger.rb
rendering.rb
translation.rb Unify raise_on_missing_translations for views and controllers 2020-05-20 02:42:59 +03:00
url_for.rb