Class: ActiveAdmin::Generators::AssetsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/active_admin/assets/assets_generator.rb

Instance Method Summary collapse

Instance Method Details

#install_assetsObject



7
8
9
10
11
12
# File 'lib/generators/active_admin/assets/assets_generator.rb', line 7

def install_assets
  remove_file "app/assets/stylesheets/active_admin.scss"
  remove_file "app/assets/javascripts/active_admin.js"
  template "active_admin.css", "app/assets/stylesheets/active_admin.css"
  template "tailwind.config.js", "tailwind-active_admin.config.js"
end