The install generator will automatically do these two changes to your files depending on the configuration used in ActiveAdmin:
- The following line will be added as the first line of
app/assets/stylesheets/active_admin.scss
:
@import 'activeadmin_addons/all'
- If your activeadmin installation uses an
app/assets/javascripts/active_admin.js.coffee
file, the following line will be added after#= require active_admin/base
:
#= require activeadmin_addons/all
- If your activeadmin installation uses an
app/assets/javascripts/active_admin.js
file, the following line will be added after//= require active_admin/base
:
//= require activeadmin_addons/all
- The following line will be added as the first line of
app/javascript/stylesheets/active_admin.scss
@import 'activeadmin_addons/src/stylesheets/all'
- The following line will be added after
import "@activeadmin/activeadmin"
inapp/javascript/packs/active_admin.js
import "activeadmin_addons"
yarn add activeadmin_addons
will be run to add the npm package.
To undo, you can use
$ rails d activeadmin_addons:install
- An initializer will be added. From there, you can change the Addons' default config.