Sha256: ee8c1883ba74509368acc86d9d102f302e50f97d525c0b3f859c9a55e8ec5c3d

Contents?: true

Size: 1.21 KB

Versions: 36

Compression:

Stored size: 1.21 KB

Contents

# Application template recipe for the rails_apps_composer. Change the recipe here:
# https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/admin.rb

case config['admin']
  when 'activeadmin'
    prefs[:admin] = 'activeadmin'
  when 'rails_admin'
    prefs[:admin] = 'rails_admin'
end

if prefer :admin, 'activeadmin'
  add_gem 'activeadmin', github: 'gregbell/active_admin'
elsif prefer :admin, 'rails_admin'
  add_gem 'rails_admin'
end

stage_two do
  say_wizard "recipe stage two"
  if prefer :admin, 'activeadmin'
    say_wizard "recipe installing activeadmin"
    generate 'active_admin:install'
  end
  if prefer :admin, 'rails_admin'
    say_wizard "recipe installing rails_admin"
    generate 'rails_admin:install'
  end
  ### GIT
  git :add => '-A' if prefer :git, true
  git :commit => %Q(-qm "rails_apps_composer: installed #{prefs[:admin]}") if prefer :git, true
end

__END__

name: admin
description: "Adding rails admin gem to your application"
author: JangoSteve

category: admin
requires: [setup]
run_after: [setup]
args: -T

config:
  - admin:
      type: multiple_choice
      prompt: Install admin gem?
      choices: [ ["None", "none"], ["ActiveAdmin", "activeadmin"], ["RailsAdmin", "rails_admin"] ]

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
rails_apps_composer-3.0.43 recipes/admin.rb
rails_apps_composer-3.0.42 recipes/admin.rb
rails_apps_composer-3.0.41 recipes/admin.rb
rails_apps_composer-3.0.40 recipes/admin.rb
rails_apps_composer-3.0.39 recipes/admin.rb
rails_apps_composer-3.0.38 recipes/admin.rb
rails_apps_composer-3.0.37 recipes/admin.rb
rails_apps_composer-3.0.36 recipes/admin.rb
rails_apps_composer-3.0.35 recipes/admin.rb
rails_apps_composer-3.0.34 recipes/admin.rb
rails_apps_composer-3.0.33 recipes/admin.rb
rails_apps_composer-3.0.32 recipes/admin.rb
rails_apps_composer-3.0.31 recipes/admin.rb
rails_apps_composer-3.0.30 recipes/admin.rb
rails_apps_composer-3.0.29 recipes/admin.rb
rails_apps_composer-3.0.28 recipes/admin.rb
rails_apps_composer-3.0.27 recipes/admin.rb
rails_apps_composer-3.0.26 recipes/admin.rb
rails_apps_composer-3.0.25 recipes/admin.rb
rails_apps_composer-3.0.24 recipes/admin.rb