motion/model/model.rb
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
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
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
Set created_at and updated_at fields
Set created_at and updated_at fields