Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
Updated purge additional fields example
Browse files Browse the repository at this point in the history
  • Loading branch information
pweston committed Dec 27, 2013
1 parent 8ac1128 commit 4f7e36e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ class User extends \LaravelBook\Ardent\Ardent {
You can also purge additional fields. The attribute `Ardent::$purgeFilters` is an array of closures to which you can add your custom rules. Those closures receive the attribute key as argument and should return `false` for attributes that should be purged. Like this:

```php
function __construct() {
parent::__construct();
function __construct($attributes = array()) {
parent::__construct($attributes);

$this->purgeFilters[] = function($key) {
$purge = array('tempData', 'myAttribute');
Expand Down

0 comments on commit 4f7e36e

Please sign in to comment.