templates/somatics.rb in somatics3-generators-0.0.5 vs templates/somatics.rb in somatics3-generators-0.0.6
- old
+ new
@@ -94,10 +94,11 @@
generate "somatics:install"
environment 'config.autoload_paths += %W(#{config.root}/lib)'
generate "somatics:authenticated user"
generate "somatics:authenticated_controller admin/user --model=User"
-run %(rails runner "User.create(:name => 'Admin', :login => 'admin', :password => 'somatics', :password_confirmation => 'somatics', :email => 'admin@admin.com')")
+run %(rails runner "User.create(:name => 'Admin', :login => 'admin', :password => 'somatics', :password_confirmation => 'somatics', :email => 'admin@admin.com')") if yes?(%(Create Default Admin User (username:admin, password:somatics)?))
+
#
# generate "tinymce_installation"
# generate "admin_controllers"
# generate "admin_scaffold user --admin-authenticated"