Ver Fonte

Fix password syntax

Chris Oliver há 6 anos atrás
pai
commit
012b2e89f0
1 ficheiros alterados com 2 adições e 2 exclusões
  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\./,