Tracing Rails configuration changes -
an application has config.action_view.cache_template_loading = true in production.rb during rendering of template setting nil. how can trace changed? (obviously, there no other mentions of cache_template_loading in project code, it's changed external dependency)
after you've set value want, can leave booby-trap explodes when else tries set value:
config.action_view.cache_template_loading = true def (config.action_view).cache_template_loading=(new_value) raise runtimeerror, "someone reconfigured cache_template-loading" end you'll stack trace showing value set.
(obviously, diagnostic tool running locally , not suitable committing code base.)
Comments
Post a Comment