Inspired by marco-polo, Bazinga gives color-coded tags of your Rails app name and environment in console, to prevent devs' bad karma to balance on production.
Add this line to your Rails project's Gemfile:
gem 'bazinga'
And then execute:
$ bundle
You can modify the app name by adding the following in your project's config/application.rb (inside class Application) :
console do
Bazinga::APP_NAME = 'railsApp' if defined? Bazinga
endor start the console by customized environment tag:
BAZINGA_APP_NAME=myAwesomeApp rails console production
- Add support for
pry-rails - Prevent sql write queries in production.
- Fork it ( https://github.com/AnkurGel/bazinga/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request

