Permalink
Browse files

Merge pull request #3 from gyardley/master

Updated MangoDemo for Kohana 3.2
  • Loading branch information...
2 parents 9e5ac55 + 2251b49 commit 131d56c019388385a8b9aacf1808b4750224cd51 Wouterrr committed Nov 3, 2011
Showing with 69 additions and 69 deletions.
  1. +67 −67 classes/controller/mangodemo.php
  2. +1 −1 classes/model/account.php
  3. +1 −1 classes/model/group.php
@@ -8,7 +8,7 @@ class Model_Account extends Mango {
'min_length' => 3,
'max_length' => 127,
'rules' => array(
- 'alpha_numeric' => NULL
+ array('alpha_numeric')
)
),
// the attributes below might seem strange - they are :-)
@@ -3,7 +3,7 @@
class Model_Group extends Mango {
protected $_fields = array(
- 'name' => array('type'=>'string','required'=>TRUE,'min_length'=>4,'max_length'=>127,'rules'=>array('alpha_numeric'=>NULL))
+ 'name' => array('type'=>'string','required'=>TRUE,'min_length'=>4,'max_length'=>127,'rules'=>array(array('alpha_numeric')))
);
protected $_relations = array(

0 comments on commit 131d56c

Please sign in to comment.