Browse Source

Disable search on password field

Fixes #59. Or at least...it's supposed to.
Chris Oliver 6 years ago
parent
commit
cbd5726e34
1 changed files with 1 additions and 1 deletions
  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 = \[/,