Class: Bricks::ActiveAdmin

Inherits:
Base
  • Object
show all
Defined in:
lib/active_admin/generator/bricks/active_admin.rb

Instance Attribute Summary

Attributes inherited from Base

#base_path, #context

Instance Method Summary collapse

Methods inherited from Base

#apply?, #ask, #choose, #commit_all, #format, #initialize, #say, #template, #title, #yes?

Constructor Details

This class inherits a constructor from Bricks::Base

Instance Method Details

#after_bundleObject



10
11
12
13
14
15
# File 'lib/active_admin/generator/bricks/active_admin.rb', line 10

def after_bundle
  generate 'active_admin:install'
  remove_file "config/initializers/active_admin.rb"
  template "config/initializers/active_admin.rb"
  commit_all "ActiveAdmin installed"
end

#before_bundleObject



3
4
5
6
7
8
# File 'lib/active_admin/generator/bricks/active_admin.rb', line 3

def before_bundle
  gem "activeadmin"
  gem "meta_search"
  gem "devise-i18n"
  @site_title = ENV['APP_NAME']
end

#recapObject



17
18
19
20
21
# File 'lib/active_admin/generator/bricks/active_admin.rb', line 17

def recap
  say 'Run rails server, visit http://127.0.0.1:3000/admin and log in using:'
  say '[email protected]'
  say 'password'
end