Parcourir la source

Fix password syntax

Chris Oliver il y a 6 ans
Parent
commit
012b2e89f0
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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\./,