This commit is contained in:
Austin White
2012-10-31 14:43:53 -07:00
parent 921e232d9d
commit 6f30ed7a79

View File

@@ -89,7 +89,7 @@ class Validator {
$this->rules = $rules;
$this->messages = $messages;
$this->attributes = $attributes;
$this->attributes = (is_object($attributes)) ? get_object_vars($attributes) : $attributes;
}
/**