Explorar el Código

Disable search on password field

Fixes #59. Or at least...it's supposed to.
Chris Oliver hace 6 años
padre
commit
cbd5726e34
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      template.rb

+ 1 - 1
template.rb

@@ -153,7 +153,7 @@ def add_administrate
 
   gsub_file "app/dashboards/user_dashboard.rb",
     /email: Field::String/,
-    "email: Field::String,\n\t\tpassword: Field::String"
+    "email: Field::String,\n\t\tField::String.with_options(searchable: false)"
 
   gsub_file "app/dashboards/user_dashboard.rb",
     /FORM_ATTRIBUTES = \[/,