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/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.