Removed redundant code.

This commit is contained in:
Qiang Xue
2013-07-01 07:14:28 -04:00
parent 7a587f62a6
commit 6c2cf9a268

View File

@ -160,10 +160,8 @@ 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;
}
foreach ($validator->attributes as $name) {
$attributes[$name] = true;
}
}
return array(