7 changed files with 8 additions and 23 deletions
@ -1,7 +1,3 @@
|
||||
class ApplicationRecord < ActiveRecord::Base |
||||
self.abstract_class = true |
||||
|
||||
def strip_whitespaces |
||||
fields_to_strip.each { |field| self[field] = self[field].strip if field.present? } |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue