Skip to content

Commit

Permalink
build using rails_apps_composer 3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielKehoe committed Nov 23, 2015
1 parent 51e50c6 commit c3a6733
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions composer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,8 @@ def which(cmd)
prefs[:authorization] = multiple_choice "Authorization?", [["None", "none"], ["Simple role-based", "roles"], ["Pundit", "pundit"]] unless prefs.has_key? :authorization
if prefer :authentication, 'devise'
if (prefer :authorization, 'roles') || (prefer :authorization, 'pundit')
prefs[:dashboard] = multiple_choice "Admin interface for database?", [["None", "none"], ["Upmin", "upmin"]] unless prefs.has_key? :dashboard
prefs[:dashboard] = multiple_choice "Admin interface for database?", [["None", "none"],
["Thoughtbot Administrate", "administrate"], ["Upmin", "upmin"]] unless prefs.has_key? :dashboard
end
end
end
Expand Down Expand Up @@ -1632,8 +1633,9 @@ def which(cmd)
add_gem 'devise_invitable' if prefer :devise_modules, 'invitable'
end

## Administratative Interface (Upmin)
## Administratative Interface
add_gem 'upmin-admin' if prefer :dashboard, 'upmin'
add_gem 'administrate' if prefer :dashboard, 'administrate'

## Authentication (OmniAuth)
add_gem 'omniauth' if prefer :authentication, 'omniauth'
Expand Down Expand Up @@ -2094,6 +2096,7 @@ def set_default_role
generate 'pages:authorized -f' if prefer :authorization, 'pundit'
end
generate 'pages:upmin -f' if prefer :dashboard, 'upmin'
generate 'administrate:install' if prefer :dashboard, 'administrate'
### GIT ###
git :add => '-A' if prefer :git, true
git :commit => '-qm "rails_apps_composer: add pages"' if prefer :git, true
Expand Down

0 comments on commit c3a6733

Please sign in to comment.