How to make custom code automatically available in Rails console.
For frequently used command from Rails console, here is a way to wrap it in a method.
# Add following to initializer or inside config/environments/development.rb
module Rails::ConsoleMethods
def jobs
Resque.info
end
end
Thanks for reading!