From 3794f909437477c9f1b860bfeefcc66e327ce35f Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Tue, 26 Jan 2021 08:26:26 +0100 Subject: [PATCH] automatically strip leading and trailing whitespace for contacts. #697 --- app/models/contact.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/contact.rb b/app/models/contact.rb index 1b5b65e50..ae9fa92b1 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true class Contact < ApplicationRecord + strip_attributes + # include helper module for Elasticsearch include Indexable