Browse Source

Removed redundant code.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
6c2cf9a268
  1. 2
      framework/yii/base/Model.php

2
framework/yii/base/Model.php

@ -160,12 +160,10 @@ class Model extends Component implements \IteratorAggregate, \ArrayAccess
{
$attributes = array();
foreach ($this->getActiveValidators() as $validator) {
if ($validator->isActive('default')) {
foreach ($validator->attributes as $name) {
$attributes[$name] = true;
}
}
}
return array(
'default' => array_keys($attributes),
);

Loading…
Cancel
Save