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
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
railties
asset_paths.rb
base.rb Shorten inspect on AbstractController::Base 2020-09-05 19:37:31 +02:00
caching.rb Follow up fa986ae0ca 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
helpers.rb Avoid creating helper modules until modified 2020-09-08 16:55:53 -07:00
logger.rb
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