aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-04-03 16:28:12 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-04-03 16:40:23 +0300
commite6f3882ce9ebba63f70de01ff4e9e5863e875569 (patch)
treedf11b115ed89bfdaf856b6f4c6d79e22b7c7ae1f /actionview/lib
parent1e8c791ed29aed7791bba5893d2a4d6e00341998 (diff)
downloadrails-e6f3882ce9ebba63f70de01ff4e9e5863e875569.tar.gz
rails-e6f3882ce9ebba63f70de01ff4e9e5863e875569.tar.bz2
rails-e6f3882ce9ebba63f70de01ff4e9e5863e875569.zip
Use `:default` option in order to set default value of `finalize_compiled_template_methods`
Since we introduced default option for `class_attribute` and `mattr_accessor` family of methods and changed all occurrences of setting default values by using of `:default` option I think it would be fine to use `:default` option in order to set default value of `finalize_compiled_template_methods` since it expresses itself very well. Related to #29294, #32418
Diffstat (limited to 'actionview/lib')
-rw-r--r--actionview/lib/action_view/template.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/actionview/lib/action_view/template.rb b/actionview/lib/action_view/template.rb
index 1c8713d6e3..ee1cd61f12 100644
--- a/actionview/lib/action_view/template.rb
+++ b/actionview/lib/action_view/template.rb
@@ -9,8 +9,7 @@ module ActionView
class Template
extend ActiveSupport::Autoload
- mattr_accessor :finalize_compiled_template_methods
- self.finalize_compiled_template_methods = true
+ mattr_accessor :finalize_compiled_template_methods, default: true
# === Encodings in ActionView::Template
#