def before_save self.attributes.each do |attribute| self.send(attribute, attribute.upcase) if attribute.is_a?(String) end end