Browse Source

Fix password syntax

Chris Oliver 5 years ago
parent
commit
012b2e89f0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      template.rb

+ 2 - 2
template.rb

@@ -155,11 +155,11 @@ def add_administrate
 
   gsub_file "app/dashboards/user_dashboard.rb",
     /email: Field::String/,
-    "email: Field::String,\n\t\tField::String.with_options(searchable: false),"
+    "email: Field::String,\n    password: Field::String.with_options(searchable: false)"
 
   gsub_file "app/dashboards/user_dashboard.rb",
     /FORM_ATTRIBUTES = \[/,
-    "FORM_ATTRIBUTES = [\n\t\t:password,"
+    "FORM_ATTRIBUTES = [\n    :password,"
 
   gsub_file "app/controllers/admin/application_controller.rb",
     /# TODO Add authentication logic here\./,