Browse Source

Use @king601's devise bootstrapped instead of rails devise views

Chris Oliver 7 years ago
parent
commit
2dd44369bf
1 changed files with 2 additions and 4 deletions
  1. 2 4
      template.rb

+ 2 - 4
template.rb

@@ -15,7 +15,7 @@ end
 
 
 def add_users
 def add_users
   # Install Devise
   # Install Devise
-  rails_command "generate devise:install"
+  generate "devise:install"
 
 
   # Configure Devise
   # Configure Devise
   environment "config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }",
   environment "config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }",
@@ -23,7 +23,7 @@ def add_users
   route "root to: 'home#index'"
   route "root to: 'home#index'"
 
 
   # Devise notices are installed via Bootstrap
   # Devise notices are installed via Bootstrap
-  rails_command "generate devise:views"
+  generate "devise:views:bootstrapped"
 
 
   # Create Devise User
   # Create Devise User
   generate :devise, "User",
   generate :devise, "User",
@@ -40,8 +40,6 @@ def add_users
 end
 end
 
 
 def add_bootstrap
 def add_bootstrap
-  generate "devise:views:bootstrapped"
-
   # Remove Application CSS
   # Remove Application CSS
   run "rm app/assets/stylesheets/application.css"
   run "rm app/assets/stylesheets/application.css"