Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 739 Bytes

install_generator.md

File metadata and controls

27 lines (17 loc) · 739 Bytes

The install generator will automatically do these two changes to your files depending on the configuration used in ActiveAdmin:

Webpacker or similar

  1. The following line will be added as the first line of app/javascript/stylesheets/active_admin.scss
@import 'activeadmin_addons/src/stylesheets/all'
  1. The following line will be added after import "@activeadmin/activeadmin" in app/javascript/packs/active_admin.js
import "activeadmin_addons"
  1. yarn add activeadmin_addons will be run to add the npm package.

To undo, you can use

$ rails d activeadmin_addons:install
  1. An initializer will be added. From there, you can change the Addons' default config.