Easy querying of rails methods in console
April 13th, 2007
When debugging or inspecting Rails code, it is often nice to see just those methods that are added by rails or custom ActiveRecord object. This simple addition to ~/.irbrc does just that: if ENV['RAILS_ENV'] class Object protected def rails_meths; (public_methods - Object.public_instance_methods).sort;... Read more »