Преглед на файлове

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

Chris Oliver преди 7 години
родител
ревизия
2dd44369bf
променени са 1 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. 2 4
      template.rb

+ 2 - 4
template.rb

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