Path: | lib/has_many_polymorphs/debugging_tools.rb |
Last Update: | Tue Apr 10 19:30:00 -0400 2012 |
Debugging tools for Has_many_polymorphs.
Enable the different tools by setting the environment variable HMP_DEBUG. Settings with special meaning are "ruby-debug", "trace", and "dependencies".
Enabled by default when HMP_DEBUG is set.
Ouputs a folder generated_models/ in Rails.root containing valid Ruby files explaining all the ActiveRecord relationships set up by the plugin, as well as listing the line in the plugin that called each particular association method.
Enable by setting HMP_DEBUG to "ruby-debug".
Starts ruby-debug for the life of the process.
Enable by setting HMP_DEBUG to "trace".
Outputs an indented trace of relevant method calls as they occur.
Enable by setting HMP_DEBUG to "dependencies".
Turns on Rails’ default dependency logging.
GENERATED_CODE_DIR | = | "#{base_dir}/generated_models" |
method_missing | -> | original_method_missing |