Permalink
Browse files

Merge branch '0.3' of code@rad-dev.org:lithium_bin.git into 0.3

  • Loading branch information...
2 parents 29c7967 + b5268d9 commit e0d68654f54616291ea0765281bd2e4d0025774c @alkemann alkemann committed Dec 9, 2009
Showing with 2 additions and 6 deletions.
  1. +2 −6 models/Paste.php
View
@@ -52,12 +52,8 @@ class Paste extends \lithium\data\Model {
*/
public $validates = array(
'content' => 'You seem to be missing the content.',
- 'author' => array(
- 'rule' => 'isAlphaNumeric', 'message' => 'You forgot your alphanumeric name?'
- ),
- 'language' => array(
- 'rule' => 'validLanguage', 'message' => 'Invalid language.'
- )
+ 'author' => array('alphaNumeric', 'message' => 'You forgot your alphanumeric name?'),
+ 'language' => array('validLanguage', 'message' => 'Invalid language.')
);
/**

0 comments on commit e0d6865

Please sign in to comment.