suite
This commit is contained in:
parent
5e36752acc
commit
f732af20ca
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user