jamierumbelow/codeigniter-base-model — pull request #43 by tonydew (2012-08-16 23:55:35+00:00)
Title: Correction for Built-in Observer timestamps example in README

The Built-in Observer timestamps example in the README are not quite right. The sample does not set the **updated_at** on **$before_create**, and also shows modifying the **created_at** on **$before_update**. AFAIK, it should be like this:

class Post_model extends MY_Model
{
public $before_create = array( 'created_at', 'updated_at' );
public $before_update = array( 'updated_at' );
}