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

Commit

Permalink
Merge pull request #146 from pweston/patch-1
Browse files Browse the repository at this point in the history
Fixing "purge additional fields" example
  • Loading branch information
igorsantos07 committed Feb 10, 2014
2 parents 1fce9b0 + 4f7e36e commit e3ad5bb
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 e3ad5bb

Please sign in to comment.