mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
080edb444a
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>" |
||
---|---|---|
.. | ||
caching | ||
railties | ||
asset_paths.rb | ||
base.rb | ||
caching.rb | ||
callbacks.rb | ||
collector.rb | ||
error.rb | ||
helpers.rb | ||
logger.rb | ||
rendering.rb | ||
translation.rb | ||
url_for.rb |