No commit activity in last 3 years
No release in over 3 years
Change ActiveAdmin page style by environment
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

Runtime

>= 0.4.4
>= 3.1
 Project Readme

ActiveAdminEnvironment

Build Status

Change AcitiveAdmin appearance by rails environment.

alt tag

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.

development alt tag

production alt tag

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request