ActiveAdminEnvironment
Change AcitiveAdmin appearance by rails environment.
Installation
Add this line to your application's Gemfile:
gem 'active_admin_environment'
After installed gem, execute:
$ rails generate active_admin_environment:install
Generating default css and initializers:
app/assets/stylesheets/active_admin_environment
├── development.css.scss
└── production.css.scss
config/initializers
└── active_admin_environment.rb
Usage
This gem is for environment named production, development.
Change color or add different environment
Edit initializer (config/initializers/active_admin_environment.rb)
Then execute bellow to regenerate css files :
$ rails generate active_admin_environment:css
Contributing
- Fork it
- 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 new Pull Request