code: def set_auto_date_field(field_name)
        unless self.class.protect_remote_timestamps?
          method = "#{field_name}="
          self.send(method, Time.now) if self.respond_to?(method)
        end
      end
docs: Set created_at and updated_at fields