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

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -