No commit activity in last 3 years
No release in over 3 years
tweak the default console behavior with better defaults
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

= 0.9.2.2

Runtime

>= 3.0
 Project Readme

rails-console-tweaks

Customize Rails console with more useful defaults.

Useful for local development as well as inspecting production system output.

Introduces an optional Bundler group to control what gems are loaded into your console. This is uesful to prevent console specific gems from being loaded into your production environment

Features

  • autoload gems in console group into your console
  • print all SQL statments executed within the current console
  • (optional) auto enable HIRB to pretty print ActiveRecord objects
  • (optional) auto start WIRB to colorize ruby object inspection

Installation

# Gemfile
gem 'rails-console-tweaks'

# add any gems that should be available only to the console
group :console do
  gem 'wirb'
  gem 'hirb'
  gem 'awesome_print'
end

That's it! No extra configuration is necessary!

Contributing

  • Fork the project
  • Fix the issue
  • Add unit tests
  • Submit pull request on github

See CONTRIBUTORS.txt for list of project contributors

Copyright

Copyright (c) 2011 Ryan Sonnek See LICENSE.txt for further details.