- Renamed Model to BaseModel (make it clear)

- Updated RoboFile to compile assets or else tests break
This commit is contained in:
Vlad
2015-08-17 15:54:48 +00:00
parent 61a372dd86
commit a26cbd6f41
22 changed files with 5370 additions and 5368 deletions

View File

@ -1,18 +0,0 @@
<?php
namespace MailPoet\Models;
if (!defined('ABSPATH')) exit;
class Model extends \Sudzy\ValidModel {
function __construct() {
$customValidators = new CustomValidator();
parent::__construct($customValidators->init());
}
function save() {
if ($this->created_at === null) {
$this->created_at = date("Y-m-d H:i:s");
}
parent::save();
}
}