Permalink
Browse files

added active_admin recipe

  • Loading branch information...
Philippe Van Eerdenbrugghe
Philippe Van Eerdenbrugghe committed Mar 14, 2012
1 parent 48ad790 commit 80660fd409b658e77c59d91e9fd6c98946119593
Showing with 31 additions and 0 deletions.
  1. +31 −0 recipes/active_admin.rb
View
@@ -0,0 +1,31 @@
+gem 'activeadmin'
+gem "meta_search", '>= 1.1.0.pre'
+# sass-rails is also required but is by default in rails
+
+
+after_bundler do
+ case config['user_model']
+ when 'default'
+ generate 'active_admin:install'
+ when ''
+ generate 'active_admin:install'
+ when 'skip'
+ generate 'active_admin:install --skip-users'
+ else
+ generate "active_admin:install #{config['user_model']}"
+ end
+end
+
+__END__
+
+name: RailsAdmin
+description: "Install Active Admin to build an administration zone data in your application"
+author: systho
+
+category: other
+
+config:
+ - user_model:
+ type: string
+ prompt: "What model will you use for admin users ? type 'skip' to skip this step (default is AdminUser)"
+

0 comments on commit 80660fd

Please sign in to comment.