This commit is contained in:
Nicolas Bally 2020-08-11 14:13:16 +02:00
parent 5e36752acc
commit f732af20ca

View File

@ -8,4 +8,9 @@ class MOdrCoupon < ApplicationRecord
} }
acts_as_csv_import :fields => [:name] acts_as_csv_import :fields => [:name]
before_save do
self.name = self.name.gsub(/\s+/, "")
end
end end