Class: RailsAppGenerator::AddOns::MotorAdmin

Inherits:
RailsAppGenerator::Addon show all
Defined in:
lib/rails_app_generator/addons/motor_admin.rb

Overview

Add MotorAdmin to rails application

Instance Attribute Summary

Attributes inherited from RailsAppGenerator::Addon

#context, #dependencies, #gem_entries

Instance Method Summary collapse

Methods inherited from RailsAppGenerator::Addon

addon_name, dependencies, depends_on, gem, gem_entries, #initialize, required_gem, reset_gem_entries

Constructor Details

This class inherits a constructor from RailsAppGenerator::Addon

Instance Method Details

#after_bundleObject



20
21
22
23
24
25
26
# File 'lib/rails_app_generator/addons/motor_admin.rb', line 20

def after_bundle
  say 'Setting up MotorAdmin - after bundle install'
  puts '33333333333333333333333333333333333333333333333333333333333333'

  generate('motor:install')
  db_migrate
end

#applyObject



10
11
12
13
# File 'lib/rails_app_generator/addons/motor_admin.rb', line 10

def apply
  say 'Setting up MotorAdmin'
  puts '11111111111111111111111111111111111111111111111111111111111111'
end

#before_bundleObject



15
16
17
18
# File 'lib/rails_app_generator/addons/motor_admin.rb', line 15

def before_bundle
  say 'Setting up MotorAdmin - before bundle install'
  puts '22222222222222222222222222222222222222222222222222222222222222'
end