rails/actionpack/lib/abstract_controller
John Hawthorn 758ad13c58 Avoid creating helper modules until modified
In applications which use :all helpers (the default), most controllers
won't be making modifications to their _helpers module.

In CRuby this created many ICLASS objects which could cause a large
increase in memory usage in applications with many controllers and
helpers.

To avoid creating unnecessary modules this PR builds modules only when a
modification is being made: ethier by calling `helper`, `helper_method`,
or through having a default helper (one matching the controller's name)
included onto it.
2020-09-08 16:55:53 -07:00
..
caching Remove unused code 2019-01-30 14:29:17 +00:00
railties Don't use deprecated Module#parents 2018-10-05 09:58:29 +09:00
asset_paths.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
base.rb Shorten inspect on AbstractController::Base 2020-09-05 19:37:31 +02:00
caching.rb Follow up fa986ae0cac423bf1ebcb5caeccbecf00c990094 2020-02-05 14:31:11 +09:00
callbacks.rb Only compute :only and :except callback conditions once 2020-04-06 11:51:30 +02:00
collector.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
error.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
helpers.rb Avoid creating helper modules until modified 2020-09-08 16:55:53 -07:00
logger.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
rendering.rb Make _protected_ivars private 2020-04-07 12:45:19 -04:00
translation.rb Unify raise_on_missing_translations for views and controllers 2020-05-20 02:42:59 +03:00
url_for.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00