Skip to content

Commit

Permalink
automatically strip leading and trailing whitespace for contacts. #697
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 26, 2021
1 parent 627f56d commit 3794f90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/contact.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# frozen_string_literal: true

class Contact < ApplicationRecord
strip_attributes

# include helper module for Elasticsearch
include Indexable

Expand Down

0 comments on commit 3794f90

Please sign in to comment.