6 changed files with 10 additions and 17 deletions
@ -1,3 +1,8 @@ |
|||||||
class ApplicationRecord < ActiveRecord::Base |
class ApplicationRecord < ActiveRecord::Base |
||||||
self.abstract_class = true |
self.abstract_class = true |
||||||
|
|
||||||
|
def strip_whitespaces |
||||||
|
self.service_name = service_name.strip unless !respond_to?("service_name") || service_name.nil? |
||||||
|
self.name = name.strip unless !respond_to?("name") || name.nil? |
||||||
|
end |
||||||
end |
end |
||||||
|
Loading…
Reference in new issue